Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Initializer

init(method:url:headers:body:timeout:maxResponseBodySize:contentConfiguration:)

init(method: HTTPRequest.Method = .get, url: URI = "/", headers: HTTPFields = [:], body: Body = .empty, timeout: Duration? = nil, maxResponseBodySize: Int = 10 * 1024 * 1024, contentConfiguration: ContentConfiguration = .default())