serialize
Converts this MediaType
into its string representation.
func serialize() -> String
Parameters
[“charset”: “utf8”]
For example, the following media type:
type:
"application"
subtype:
"json"
Would be converted to "application/json; charset=utf8"
.