Structurevapor 4.114.1Vapor
View
View.swift:3struct View
struct View
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 AsyncResponseEncodable
Can convert self
to a Response
.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
protocol ResponseEncodable
Can convert self
to a Response
.
protocol Sendable
init(data: ByteBuffer)
var data: ByteBuffer
func encodeResponse(for request: Request) -> EventLoopFuture<Response>
func encodeResponse(for request: Request) async throws -> Response
func encodeResponse(status: HTTPStatus, headers: HTTPHeaders = [:], for request: Request) -> EventLoopFuture<Response>
Asynchronously encodes Self
into a Response
, setting the supplied status and headers.