Skip to content

Initializer

init(application:method:url:version:headersNoUpdate:collectedBody:remoteAddress:peerCertificateChain:logger:byteBufferAllocator:on:)

init(application: Application, method: HTTPMethod, url: URI, version: HTTPVersion = .init(major: 1, minor: 1), headersNoUpdate headers: HTTPHeaders = .init(), collectedBody: ByteBuffer? = nil, remoteAddress: SocketAddress? = nil, peerCertificateChain: ValidatedCertificateChain?, logger: Logger = .init(label: "codes.vapor.request"), byteBufferAllocator: ByteBufferAllocator = ByteBufferAllocator(), on eventLoop: any EventLoop)