Idris2Doc : Pact.WAI.Response

Pact.WAI.Response

(source)
Define response types and functions

Definitions

recordResponse : Type
Totality: total
Visibility: public export
Constructor: 
MkResponse : StatusCode->Headers->MaybeString->Response

Projections:
.body : Response->MaybeString
.headers : Response->Headers
.status : Response->StatusCode

Hint: 
ShowResponse
.status : Response->StatusCode
Visibility: public export
status : Response->StatusCode
Visibility: public export
.headers : Response->Headers
Visibility: public export
headers : Response->Headers
Visibility: public export
.body : Response->MaybeString
Visibility: public export
body : Response->MaybeString
Visibility: public export
notFoundResponse : Response
  404 Not Found response
Returned when the requested path cannot be matched to any route

Visibility: public export
badRequestResponse : String->Response
  400 Bad Request response
Returned when the request is invalid

Visibility: public export
renderHeaders : Headers->String
  Render headers to a string
@ headers The headers to render

Visibility: public export
renderResponse : Response->String
  Response rendering function
Converts a Response to a string for HTTP response
@ resp The response object to render

Visibility: public export