Structurevapor 4.114.1Vapor
ClientRequest
ClientRequest.swift:5struct ClientRequest
struct ClientRequest
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol Sendable
init(method: HTTPMethod = .GET, url: URI = "/", headers: HTTPHeaders = [:], body: ByteBuffer? = nil, byteBufferAllocator: ByteBufferAllocator = ByteBufferAllocator())
init(method: HTTPMethod = .GET, url: URI = "/", headers: HTTPHeaders = [:], body: ByteBuffer? = nil, timeout: TimeAmount?, byteBufferAllocator: ByteBufferAllocator = ByteBufferAllocator())
var body: ByteBuffer?
var content: ContentContainer { get set }
var headers: HTTPHeaders
var method: HTTPMethod
var query: URLQueryContainer { get set }
var timeout: TimeAmount?
var url: URI