Method: Cuba::Response#text

Defined in:
lib/cuba.rb

#text(str) ⇒ Object

Write response body as text/plain



50
51
52
53
# File 'lib/cuba.rb', line 50

def text(str)
  @headers[Rack::CONTENT_TYPE] = ContentType::TEXT
  write(str)
end