Request
Generated.swift:14524class Request
class Request
import DOM
protocol Any_RequestInfo : ConvertibleToJSValue
protocol Body : JSBridgedClass
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Escapable
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
convenience init(input: RequestInfo, init: RequestInit? = nil)
required init(unsafelyWrapping jsObject: JSObject)
class var constructor: JSFunction? { get }
@ReadonlyAttribute var cache: RequestCache { get }
@ReadonlyAttribute var credentials: RequestCredentials { get }
@ReadonlyAttribute var destination: RequestDestination { get }
@ReadonlyAttribute var duplex: RequestDuplex { get }
@ReadonlyAttribute var headers: Headers { get }
@ReadonlyAttribute var integrity: String { get }
@ReadonlyAttribute var isHistoryNavigation: Bool { get }
@ReadonlyAttribute var isReloadNavigation: Bool { get }
let jsObject: JSObject
@ReadonlyAttribute var keepalive: Bool { get }
@ReadonlyAttribute var method: String { get }
@ReadonlyAttribute var mode: RequestMode { get }
@ReadonlyAttribute var redirect: RequestRedirect { get }
@ReadonlyAttribute var referrer: String { get }
@ReadonlyAttribute var referrerPolicy: ReferrerPolicy { get }
@ReadonlyAttribute var signal: AbortSignal { get }
@ReadonlyAttribute var url: String { get }
func clone() -> Self
init?(from value: JSValue)
init?(from object: JSObject)
static func construct(from value: JSValue) -> Self?
var body: ReadableStream? { get }
var bodyUsed: Bool { get }
var description: String { get }
var jsValue: JSValue { get }
func arrayBuffer() -> JSPromise
func blob() -> JSPromise
func formData() -> JSPromise
func json() -> JSPromise
func text() -> JSPromise
func jsValue() -> JSValue