Module

HTTPure.Body

Package
purescript-httpure
Repository
cprussin/purescript-httpure

#Body Source

type Body = String

The Body type is just sugar for a String, that will be sent or received in the HTTP body.

#read Source

read :: forall e. Request -> Aff (HTTPureEffects e) Body

Extract the contents of the body of the HTTP Request.

#write Source

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

Write a Body to the given HTTP Response and close it.