Header.content_type
Header.content_typevalueencoding
Documentation
Create "Content-Type" header.
Arguments
value
: The value for the content type header.encoding
: TheEncoding
to use as thecharset
in the content-type value. If encoding isNothing
, then thecharset
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"