Instance Propertyasync-http-client 1.25.2AsyncHTTPClient
headers
The HTTP headers of this response.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
var headers: HTTPHeaders
The HTTP headers of this response.
var headers: HTTPHeaders
s15AsyncHTTPClient0B8ResponseV7headers8NIOHTTP111HTTPHeadersVvp
What are these?9L1R0
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 HTTPHeaders
A representation of a block of HTTP header fields.
init(version: HTTPVersion = .http1_1, status: HTTPResponseStatus = .ok, headers: HTTPHeaders = [:], body: Body = Body())
var body: Body
The body of this HTTP response.
var status: HTTPResponseStatus
The HTTP status for this response.
var version: HTTPVersion
The HTTP version on which the response was received.
struct Body
A representation of the response body for an HTTP response.