Peregrine.Response
- Package
- purescript-peregrine
- Repository
- maxdeviant/peregrine
#fromStatus Source
fromStatus :: Status -> ResponseConstructs a response from the specified HTTP status, using the status' reason phrase as the response body.
#withHeaders Source
withHeaders :: Headers -> Response -> ResponseSets the response headers, overwriting any existing headers.
#addHeader Source
addHeader :: HeaderName -> HeaderValue -> Response -> ResponseAdds a header to the response.
If the response already contains a header with the specified name it will be overwritten.
#switchingProtocols Source
switchingProtocols :: ResponseReturns a 101 Switching Protocols response with the reason phrase in the body.
#processing Source
processing :: ResponseReturns a 102 Processing response with the reason phrase in the body.
#nonAuthoritativeInformation Source
nonAuthoritativeInformation :: ResponseReturns a 203 Non-Authoritative Information response with the reason phrase in the body.
#resetContent Source
resetContent :: ResponseReturns a 205 Reset Content response with the reason phrase in the body.
#partialContent Source
partialContent :: ResponseReturns a 206 Partial Content response with the reason phrase in the body.
#multiStatus Source
multiStatus :: ResponseReturns a 207 Multi-Status response with the reason phrase in the body.
#alreadyReported Source
alreadyReported :: ResponseReturns a 208 Already Reported response with the reason phrase in the body.
#multipleChoices Source
multipleChoices :: ResponseReturns a 300 Multiple Choices response with the reason phrase in the body.
#movedPermanently Source
movedPermanently :: ResponseReturns a 301 Moved Permanently response with the reason phrase in the body.
#notModified Source
notModified :: ResponseReturns a 304 Not Modified response with the reason phrase in the body.
#temporaryRedirect Source
temporaryRedirect :: ResponseReturns a 307 Temporary Redirect response with the reason phrase in the body.
#permanentRedirect Source
permanentRedirect :: ResponseReturns a 308 Permanent Redirect response with the reason phrase in the body.
#badRequest Source
badRequest :: ResponseReturns a 400 Bad Request response with the reason phrase in the body.
#unauthorized Source
unauthorized :: ResponseReturns a 401 Unauthorized response with the reason phrase in the body.
#paymentRequired Source
paymentRequired :: ResponseReturns a 402 Payment Required response with the reason phrase in the body.
#methodNotAllowed Source
methodNotAllowed :: ResponseReturns a 405 Method Not Allowed response with the reason phrase in the body.
#notAcceptable Source
notAcceptable :: ResponseReturns a 406 Not Acceptable response with the reason phrase in the body.
#proxyAuthenticationRequired Source
proxyAuthenticationRequired :: ResponseReturns a 407 Proxy Authentication Required response with the reason phrase in the body.
#requestTimeout Source
requestTimeout :: ResponseReturns a 408 Request Timeout response with the reason phrase in the body.
#lengthRequired Source
lengthRequired :: ResponseReturns a 411 Length Required response with the reason phrase in the body.
#preconditionFailed Source
preconditionFailed :: ResponseReturns a 412 Precondition Failed response with the reason phrase in the body.
#payloadTooLarge Source
payloadTooLarge :: ResponseReturns a 413 Payload Too Large response with the reason phrase in the body.
#uriTooLong Source
uriTooLong :: ResponseReturns a 414 URI Too Long response with the reason phrase in the body.
#unsupportedMediaType Source
unsupportedMediaType :: ResponseReturns a 415 Unsupported Media Type response with the reason phrase in the body.
#rangeNotSatisfiable Source
rangeNotSatisfiable :: ResponseReturns a 416 Range Not Satisfiable response with the reason phrase in the body.
#expectationFailed Source
expectationFailed :: ResponseReturns a 417 Expectation Failed response with the reason phrase in the body.
#misdirectedRequest Source
misdirectedRequest :: ResponseReturns a 421 Misdirected Request response with the reason phrase in the body.
#unprocessableEntity Source
unprocessableEntity :: ResponseReturns a 422 Unprocessable Entity response with the reason phrase in the body.
#failedDependency Source
failedDependency :: ResponseReturns a 424 Failed Dependency response with the reason phrase in the body.
#upgradeRequired Source
upgradeRequired :: ResponseReturns a 426 Upgrade Required response with the reason phrase in the body.
#preconditionRequired Source
preconditionRequired :: ResponseReturns a 428 Precondition Required response with the reason phrase in the body.
#tooManyRequests Source
tooManyRequests :: ResponseReturns a 429 Too Many Requests response with the reason phrase in the body.
#requestHeaderFieldsTooLarge Source
requestHeaderFieldsTooLarge :: ResponseReturns a 431 Request Header Fields Too Large response with the reason phrase in the body.
#internalServerError Source
internalServerError :: ResponseReturns a 500 Internal Server Error response with the reason phrase in the body.
#notImplemented Source
notImplemented :: ResponseReturns a 501 Not Implemented response with the reason phrase in the body.
#badGateway Source
badGateway :: ResponseReturns a 502 Bad Gateway response with the reason phrase in the body.
#gatewayTimeout Source
gatewayTimeout :: ResponseReturns a 504 Gateway Timeout response with the reason phrase in the body.
#httpVersionNotSupported Source
httpVersionNotSupported :: ResponseReturns a 505 HTTP Version Not Supported response with the reason phrase in the body.
#variantAlsoNegotiates Source
variantAlsoNegotiates :: ResponseReturns a 506 Variant Also Negotiates response with the reason phrase in the body.
#insufficientStorage Source
insufficientStorage :: ResponseReturns a 507 Insufficient Storage response with the reason phrase in the body.
#loopDetected Source
loopDetected :: ResponseReturns a 508 Loop Detected response with the reason phrase in the body.
#notExtended Source
notExtended :: ResponseReturns a 510 Not Extended response with the reason phrase in the body.
#networkAuthenticationRequired Source
networkAuthenticationRequired :: ResponseReturns a 511 Network Authentication Required response with the reason phrase in the body.