struct Athena::Routing::Response::DirectWriter

Overview

The default ART::Response::Writer for an ART::Response.

Writes directly to the output IO.

Defined in:

response.cr

Instance Method Summary

Instance methods inherited from struct Athena::Routing::Response::Writer

initialize initialize, write(output : IO, & : IO -> Nil) : Nil write

Constructor methods inherited from struct Athena::Routing::Response::Writer

new new

Instance Method Detail

def write(output : IO, & : IO -> Nil) : Nil #

Accepts an output IO that the content of the response should be written to.

The output IO is yielded directly.


[View source]