Bypassing view and layout rendering - Ramaze/ramaze GitHub Wiki
You can use the respond!
method, that directly returns a body, a HTTP status and a content type.
body = "whatever"
respond!(body, status, 'Content-Type' => 'whatever/foo')
You can use the respond!
method, that directly returns a body, a HTTP status and a content type.
body = "whatever"
respond!(body, status, 'Content-Type' => 'whatever/foo')