Vapor Documentation

Structure View

public struct View: ResponseEncodable  
%221 View View ResponseEncodable ResponseEncodable View->ResponseEncodable AsyncResponseEncodable AsyncResponseEncodable View->AsyncResponseEncodable

Conforms To

AsyncResponseEncodable

Can convert self to a Response.

ResponseEncodable

Can convert self to a Response.

Initializers

init(data:​)

public init(data: ByteBuffer)  

Properties

data

public var data: ByteBuffer

Methods

encode​Response(for:​)

public func encodeResponse(for request: Request) async throws -> Response  

encode​Response(for:​)

public func encodeResponse(for request: Request) -> EventLoopFuture<Response>