class Amber::Controller::Helpers::Responders::Content
- Amber::Controller::Helpers::Responders::Content
- Reference
- Object
Defined in:
amber/controller/helpers/responders.crConstant Summary
-
ACCEPT_SEPARATOR_REGEX =
/,|,\s/
-
TYPE =
{html: "text/html", json: "application/json; charset=utf-8", txt: "text/plain", text: "text/plain", xml: "application/xml", js: "application/javascript"}
-
TYPE_EXT_REGEX =
/\.(#{TYPE.keys.join("|")})$/
Constructors
Instance Method Summary
- #body
- #html(value : String | ProcType)
- #html(&block : -> _)
- #js(value : String | ProcType)
- #js(&block : -> _)
- #json(value : String | ProcType)
- #json(&block : -> _)
- #json(value : Hash(Symbol | String, String))
- #json(**args : Object)
- #text(value : String | ProcType)
- #text(&block : -> _)
- #type
- #xml(value : String | ProcType)
- #xml(&block : -> _)