Module

HTTPure.Headers

Package
purescript-httpure
Repository
cprussin/purescript-httpure

#Headers Source

type Headers = StrMap String

The Headers type is just sugar for a StrMap of Strings that represents the set of headers sent or received in an HTTP request or response.

#lookup Source

lookup :: Headers -> String -> String

Return the value of the given header.

#write Source

write :: forall e. Response -> Headers -> Eff (http :: HTTP | e) Unit

Write a set of headers to the given HTTP Response.