class HTTP::Server::Response

Overview

Extensions to the standard HTTP::Server::Response class.

Defined in:

onyx-http/ext/http/server/response.cr
onyx-http/ext/http/server/response/error.cr
onyx-http/ext/http/server/response/view.cr
onyx-http/ext/http/server/response/websocket_status_code.cr

Instance Method Summary

Instance Method Detail

def error : Exception? #

A rescued error which is likely to be put into the response output.


[View source]
def error=(error : Exception?) #

A rescued error which is likely to be put into the response output.


[View source]
def view : Onyx::HTTP::View? #

A view to render.


[View source]
def view=(view : Onyx::HTTP::View?) #

A view to render.


[View source]
def websocket_status_code : Int32? #

Status code for websocket connection.


[View source]
def websocket_status_code=(websocket_status_code : Int32?) #

Status code for websocket connection.


[View source]