FetchResponse
public final class FetchResponse
Undocumented
-
Undocumented
Declaration
Swift
public let body: ReadableBody
-
Undocumented
Declaration
Swift
public let headers: Headers<HttpResponse>
-
Undocumented
Declaration
Swift
public let status: HttpStatus
-
Undocumented
Declaration
Swift
public var ok: Bool { get }
-
Undocumented
Declaration
Swift
public var url: URL { get }
-
bodyUsed
AsynchronousUndocumented
Declaration
Swift
public var bodyUsed: Bool { get async }
-
decode(_:
Asynchronousdecoder: ) Undocumented
Declaration
Swift
public func decode<T>(_ type: T.Type, decoder: JSONDecoder = .init()) async throws -> T where T : Decodable
-
json()
AsynchronousUndocumented
Declaration
Swift
public func json() async throws -> Any
-
text()
AsynchronousUndocumented
Declaration
Swift
public func text() async throws -> String
-
data()
AsynchronousUndocumented
Declaration
Swift
public func data() async throws -> Data
-
bytes()
AsynchronousUndocumented
Declaration
Swift
public func bytes() async throws -> [UInt8]