module Flow::Response::Helpers

Direct including types

Defined in:

flow/response.cr

Instance Method Summary

Instance Method Detail

def error_response(body : NamedTuple | Hash, status : HTTP::Status = HTTP::Status::BAD_REQUEST) : Flow::Response #

[View source]
def error_response(body : JSON::Any, status : HTTP::Status = HTTP::Status::BAD_REQUEST) : Flow::Response #

[View source]
def json_response(body : JSON::Any, status : HTTP::Status = HTTP::Status::OK) : Flow::Response #

[View source]
def json_response(body : NamedTuple | Hash, status : HTTP::Status = HTTP::Status::OK) : Flow::Response #

[View source]
def response_body #

[View source]
def response_status #

[View source]
def returned? #

[View source]