Method: Syro::Response#text

Defined in:
lib/syro.rb

#text(str) ⇒ Object

Write response body as text/plain



112
113
114
115
# File 'lib/syro.rb', line 112

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