class HTTP::ContentType
Constants
- CHARSET_RE
- MIME_TYPE_RE
Attributes
charset[RW]
mime_type[RW]
Public Class Methods
parse(str)
click to toggle source
Parse string and return ContentType
struct
# File lib/http/content_type.rb, line 12 def parse(str) new mime_type(str), charset(str) end