module Roda::RodaPlugins::ResponseContentType::ResponseMethods

def content_type

not yet been explicitly set.
Return the content-type of the response. Will be nil if it has
def content_type
  @headers[RodaResponseHeaders::CONTENT_TYPE]
end

def content_type=(mime_type)

a recognized mime type, raises KeyError.
type with the given file extension. If the symbol is not
it is used directly. If given a symbol, looks up the mime
Set the content-type of the response. If given a string,
def content_type=(mime_type)
  mime_type = roda_class.opts[:repsonse_content_types].fetch(mime_type) if mime_type.is_a?(Symbol)
  @headers[RodaResponseHeaders::CONTENT_TYPE] = mime_type
end