Amber::Controller::Helpers::Responders::Content
Constants
ACCEPT_SEPARATOR_REGEX = /,|,\s/
SUPPORTED_FORMATS = Set.new(TYPE.keys.map(&.to_s))
TYPE = {
html: "text/html",
json: "application/json; charset=utf-8",
txt: "text/plain",
text: "text/plain",
xml: "application/xml",
js: "text/javascript",
}
TYPE_EXT_REGEX = /\.(#{TYPE.keys.join("|")})$/
Constructors
Instance methods
body
Sourcehtml
Sourcejs
Sourcejson
Sourcejson
Sourcetext
Sourcetype
Sourcexml
Source