Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions api-reports/2_12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14453,11 +14453,16 @@ ReferrerPolicy[SO] val `no-referrer-when-downgrade` = "no-referrer-when-downgrad
ReferrerPolicy[SO] val `origin-only` = "origin-only".asInstanceOf[ReferrerPolicy]
ReferrerPolicy[SO] val `origin-when-cross-origin` = "origin-when-cross-origin".asInstanceOf[ReferrerPolicy]
ReferrerPolicy[SO] val `unsafe-url` = "unsafe-url".asInstanceOf[ReferrerPolicy]
Request[JC] def arrayBuffer(): js.Promise[ArrayBuffer]
Request[JC] def blob(): js.Promise[Blob]
Request[JC] def bodyUsed: Boolean
Request[JC] def cache: RequestCache
Request[JC] def credentials: RequestCredentials
Request[JC] def destination: RequestDestination
Request[JC] def formData(): js.Promise[FormData]
Request[JC] def headers: Headers
Request[JC] def integrity: String
Request[JC] def json(): js.Promise[js.Any]
Request[JC] def keepalive: Boolean
Request[JC] @JSName("type") def mediaType: RequestType
Request[JC] def method: HttpMethod
Expand All @@ -14466,6 +14471,7 @@ Request[JC] def redirect: RequestRedirect
Request[JC] def referrer: String
Request[JC] def referrerPolicy: ReferrerPolicy
Request[JC] def signal: AbortSignal
Request[JC] def text(): js.Promise[String]
Request[JC] def url: String
RequestCache[JT]
RequestCache[SO] val default: RequestCache
Expand Down
6 changes: 6 additions & 0 deletions api-reports/2_13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14453,11 +14453,16 @@ ReferrerPolicy[SO] val `no-referrer-when-downgrade` = "no-referrer-when-downgrad
ReferrerPolicy[SO] val `origin-only` = "origin-only".asInstanceOf[ReferrerPolicy]
ReferrerPolicy[SO] val `origin-when-cross-origin` = "origin-when-cross-origin".asInstanceOf[ReferrerPolicy]
ReferrerPolicy[SO] val `unsafe-url` = "unsafe-url".asInstanceOf[ReferrerPolicy]
Request[JC] def arrayBuffer(): js.Promise[ArrayBuffer]
Request[JC] def blob(): js.Promise[Blob]
Request[JC] def bodyUsed: Boolean
Request[JC] def cache: RequestCache
Request[JC] def credentials: RequestCredentials
Request[JC] def destination: RequestDestination
Request[JC] def formData(): js.Promise[FormData]
Request[JC] def headers: Headers
Request[JC] def integrity: String
Request[JC] def json(): js.Promise[js.Any]
Request[JC] def keepalive: Boolean
Request[JC] @JSName("type") def mediaType: RequestType
Request[JC] def method: HttpMethod
Expand All @@ -14466,6 +14471,7 @@ Request[JC] def redirect: RequestRedirect
Request[JC] def referrer: String
Request[JC] def referrerPolicy: ReferrerPolicy
Request[JC] def signal: AbortSignal
Request[JC] def text(): js.Promise[String]
Request[JC] def url: String
RequestCache[JT]
RequestCache[SO] val default: RequestCache
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/org/scalajs/dom/Fetch.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object Fetch extends js.Object {
*/
@js.native
@JSGlobal
class Request(input: RequestInfo, init: RequestInit = null) extends js.Object {
class Request(input: RequestInfo, init: RequestInit = null) extends Body {

/** Contains the request's method (GET, POST, etc.)
*/
Expand Down