Method: HTTPX::ContentType.parse

Defined in:
lib/httpx/response.rb

.parse(str) ⇒ Object

Parse string and return ContentType struct



203
204
205
# File 'lib/httpx/response.rb', line 203

def parse(str)
  new(mime_type(str), charset(str))
end