Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance Method

serialize()

Converts this HTTPMediaType into its string representation.
func serialize() -> String

Discussion

For example, the following media type:

  • type: "application"

  • subtype: "json"

Would be converted to "application/json; charset=utf8".