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
  • ok

    Undocumented

    Declaration

    Swift

    public var ok: Bool { get }
  • url

    Undocumented

    Declaration

    Swift

    public var url: URL { get }
  • bodyUsed Asynchronous

    Undocumented

    Declaration

    Swift

    public var bodyUsed: Bool { get async }
  • decode(_:decoder:) Asynchronous

    Undocumented

    Declaration

    Swift

    public func decode<T>(_ type: T.Type, decoder: JSONDecoder = .init()) async throws -> T where T : Decodable
  • json() Asynchronous

    Undocumented

    Declaration

    Swift

    public func json() async throws -> Any
  • text() Asynchronous

    Undocumented

    Declaration

    Swift

    public func text() async throws -> String
  • data() Asynchronous

    Undocumented

    Declaration

    Swift

    public func data() async throws -> Data
  • bytes() Asynchronous

    Undocumented

    Declaration

    Swift

    public func bytes() async throws -> [UInt8]