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