module Flow::Response::Helpers
Direct including types
Defined in:
flow/response.crInstance Method Summary
- #error_response(body : NamedTuple | Hash, status : HTTP::Status = HTTP::Status::BAD_REQUEST) : Flow::Response
- #error_response(body : JSON::Any, status : HTTP::Status = HTTP::Status::BAD_REQUEST) : Flow::Response
- #json_response(body : JSON::Any, status : HTTP::Status = HTTP::Status::OK) : Flow::Response
- #json_response(body : NamedTuple | Hash, status : HTTP::Status = HTTP::Status::OK) : Flow::Response
- #response_body
- #response_status
- #returned?
Instance Method Detail
def error_response(body : NamedTuple | Hash, status : HTTP::Status = HTTP::Status::BAD_REQUEST) : Flow::Response
#
def error_response(body : JSON::Any, status : HTTP::Status = HTTP::Status::BAD_REQUEST) : Flow::Response
#
def json_response(body : NamedTuple | Hash, status : HTTP::Status = HTTP::Status::OK) : Flow::Response
#