Response
Generated.swift:14865class Response
class Response
import DOM
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 CustomStringConvertible
A type with a customized textual representation.
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(body: BodyInit? = nil, init: ResponseInit? = nil)
required init(unsafelyWrapping jsObject: JSObject)
class var constructor: JSFunction? { get }
class func error() -> Self
class func json(data: JSValue, init: ResponseInit? = nil) -> Self
class func redirect(url: String, status: UInt16? = nil) -> Self
@ReadonlyAttribute var headers: Headers { get }
let jsObject: JSObject
@ReadonlyAttribute var ok: Bool { get }
@ReadonlyAttribute var redirected: Bool { get }
@ReadonlyAttribute var status: UInt16 { get }
@ReadonlyAttribute var statusText: String { get }
@ReadonlyAttribute var type: ResponseType { 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