Method: HTTP::Message::Headers#content_type

Defined in:
lib/httpclient/http.rb

#content_typeObject Also known as: contenttype

Returns ‘Content-Type’ header value.



219
220
221
# File 'lib/httpclient/http.rb', line 219

def content_type
  self['Content-Type'][0]
end