Vapor Documentation Beta

Structure View

public struct View: ResponseEncodable
%3 View View ResponseEncodable ResponseEncodable View->ResponseEncodable

Conforms To

ResponseEncodable

Can convert self to a Response.

Initializers

init(data:​)

public init(data: ByteBuffer)

Properties

data

var data: ByteBuffer

Methods

encode​Response(for:​)

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