Response
public struct Response
extension Response: Sendable
extension Response: Equatable, Hashable
A response from the server.
-
The method used to request this response.
Declaration
Swift
public var requestMethod: Method
-
The URL of this response.
Declaration
Swift
public var url: ViaductUrl
-
The HTTP Status code of this response.
Declaration
Swift
public var status: UInt16
-
The headers returned with this response.
Declaration
Swift
public var headers: Headers
-
The body of the response.
Declaration
Swift
public var body: Data
-
Declaration
Swift
public init( /** * The method used to request this response. */requestMethod: Method, /** * The URL of this response. */url: ViaductUrl, /** * The HTTP Status code of this response. */status: UInt16, /** * The headers returned with this response. */headers: Headers, /** * The body of the response. */body: Data)
-
Declaration
Swift
public static func == (lhs: Response, rhs: Response) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)