Module

HTTPure.Response

Package
purescript-httpure
Repository
cprussin/purescript-httpure

#Response Source

data Response

A response is a status and headers, and for some statuses, a body. You can use the data constructor Response to send non-standard status codes.

Constructors

#ResponseM Source

type ResponseM e = HTTPureM e Response

The ResponseM type simply conveniently wraps up an HTTPure monad that returns a response. This type is the return type of all router/route methods.

#send Source

send :: forall e. Response -> Response -> HTTPureM e Unit

Given an HTTP response and a HTTPure response, this method will return a monad encapsulating writing the HTTPure response to the HTTP response and closing the HTTP response.