Skip to content

ResponseConvertible

Josh Wright edited this page Jan 14, 2021 · 3 revisions

ResponseConvertible

Represents any type that can be converted into a response & is thus returnable from a request handler.

public protocol ResponseConvertible

Requirements

convert()

Takes the response and turns it into an EventLoopFuture<Response>.

func convert() throws -> EventLoopFuture<Response>

Throws

Any error that might occur when this is turned into a Response future.

Returns

A future containing an Response to respond to a Request with.

Alchemy
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Fusion
Types
Protocols
Papyrus
Types
Protocols
Clone this wiki locally