Instance Propertyvapor 4.114.1Vapor
headers
ClientResponse.swift:7var headers: HTTPHeaders
var headers: HTTPHeaders
s5Vapor14ClientResponseV7headers8NIOHTTP111HTTPHeadersVvp
What are these?7CKO8
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.
struct ClientResponse
struct HTTPHeaders
A representation of a block of HTTP header fields.
init(from decoder: Decoder) throws
init(status: HTTPStatus = .ok, headers: HTTPHeaders = [:], body: ByteBuffer? = nil, byteBufferAllocator: ByteBufferAllocator = ByteBufferAllocator())
var body: ByteBuffer?
var content: ContentContainer { get set }
var description: String { get }
var status: HTTPStatus
static func == (lhs: Self, rhs: Self) -> Bool
func encode(to encoder: Encoder) throws
func encodeResponse(for request: Request) -> EventLoopFuture<Response>
func encodeResponse(for request: Request) async throws -> Response