Skip to main content

Header.content_type

Header.content_typevalueencoding

Documentation

Create "Content-Type" header.

Arguments

  • value: The value for the content type header.
  • encoding: The Encoding to use as the charset in the content-type value. If encoding is Nothing, then the charset is not added to the header valye.

Examples

Create a content type header containing "my_type".

      import Standard.Base.Network.HTTP.Header.Header

example_content_type = Header.content_type "my_type"