Instance Propertyasync-http-client 1.25.2AsyncHTTPClient
body
The body of this HTTP response.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
var body: Body
The body of this HTTP response.
var body: Body
import AsyncHTTPClient
This package provides simple HTTP Client library built on top of SwiftNIO.
struct HTTPClientResponse
A representation of an HTTP response for the Swift Concurrency HTTPClient API.
struct Body
A representation of the response body for an HTTP response.
init(version: HTTPVersion = .http1_1, status: HTTPResponseStatus = .ok, headers: HTTPHeaders = [:], body: Body = Body())
var headers: HTTPHeaders
The HTTP headers of this response.
var status: HTTPResponseStatus
The HTTP status for this response.
var version: HTTPVersion
The HTTP version on which the response was received.