Method: HTTPX::ContentType.parse
- Defined in:
- lib/httpx/response.rb
.parse(str) ⇒ Object
Parse string and return ContentType struct
218 219 220 |
# File 'lib/httpx/response.rb', line 218 def parse(str) new(mime_type(str), charset(str)) end |