Katip.Wai.Request
data Request Source #
An incoming http request.
Constructors
Fields
Unique identifier for the request.
HTTP request method, ie GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, or PATCH.
GET
HEAD
POST
PUT
DELETE
CONNECT
OPTIONS
TRACE
PATCH
HTTP version that was used for this request.
Raw path info for this request.
All of the headers that were sent in this request. Be careful not log any sensitive headers, like API Keys.
Set to True if the connection used https.
True
The remote host the request was sent from.
Same as rawPathInfo except this is broken up into a list.
rawPathInfo
The query string from the request.
The time the request was received on the server.
The time the server started processing the request. You can probably ignore this, it's only here so we can time how long it takes to respond.
Defined in Katip.Wai.Request
Methods
showsPrec :: Int -> Request -> ShowS #
show :: Request -> String #
showList :: [Request] -> ShowS #
(==) :: Request -> Request -> Bool #
(/=) :: Request -> Request -> Bool #
traceRequest :: MonadIO m => Request -> m Request Source #
Trace a Request by assigning it a unique UUID and capture information about the request.
Request
UUID