Module
Payload.ResponseTypes
- Package
- purescript-payload
- Repository
- hoodunit/purescript-payload
#Response Source
newtype Response r
The type of a server response, before encoding the body. Responses with modified statuses or headers can be created by returning this type (directly or via helper functions).
Constructors
Response { body :: r, headers :: Headers, status :: HttpStatus }
Instances
#ResponseContent Source
type ResponseContent r = { body :: r, headers :: Headers, status :: HttpStatus }
#HttpStatus Source
type HttpStatus = { code :: Int, reason :: String }
#RawResponse Source
type RawResponse = Response ResponseBody
All server responses ultimately resolve into this type.
#ResponseBody Source
#UnsafeStream Source
data UnsafeStream
- Modules
- Payload.
Client - Payload.
Client. ClientApi - Payload.
Client. DecodeResponse - Payload.
Client. EncodeBody - Payload.
Client. EncodeParam - Payload.
Client. Internal. EncodeUri - Payload.
Client. Internal. Query - Payload.
Client. Internal. Url - Payload.
Client. Options - Payload.
Client. QueryParams - Payload.
Client. Queryable - Payload.
Client. Response - Payload.
ContentType - Payload.
Debug - Payload.
Headers - Payload.
Internal. QueryParsing - Payload.
Internal. Route - Payload.
Internal. UrlParsing - Payload.
Internal. Utils - Payload.
ResponseTypes - Payload.
Server - Payload.
Server. Cookies - Payload.
Server. DecodeBody - Payload.
Server. Guards - Payload.
Server. Handleable - Payload.
Server. Handlers - Payload.
Server. Internal. GuardParsing - Payload.
Server. Internal. MimeTypes - Payload.
Server. Internal. OmitEmpty - Payload.
Server. Internal. Query - Payload.
Server. Internal. Querystring - Payload.
Server. Internal. Request - Payload.
Server. Internal. ServerResponse - Payload.
Server. Internal. Trie - Payload.
Server. Internal. Url - Payload.
Server. Internal. UrlString - Payload.
Server. Params - Payload.
Server. Path - Payload.
Server. QueryParams - Payload.
Server. Response - Payload.
Server. Routable - Payload.
Server. Status - Payload.
Spec - Payload.
TypeErrors