Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(ctype string) (mtype string, params map[string]string, invalidParams []string, err error)
Parse is a more tolerant implementation of Go's mime.ParseMediaType function.
Tolerances accounted for:
- Missing ';' between content-type and media parameters
- Repeating media parameters
- Unquoted values in media parameters containing 'tspecials' characters
- Newline characters
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.