Module

Bucketchain.Logger.HTTP.Token

Package
purescript-bucketchain-logger
Repository
Bucketchain/purescript-bucketchain-logger

#Token Source

data Token

The type of a token for logger.

It has a label and a tokenizer.

#token Source

token :: String -> (Http -> Tokenizer String) -> Token

Constructor function of Token.

#label Source

label :: Token -> String

Get label of token.

#tokenizer Source

tokenizer :: Token -> (Http -> Tokenizer String)

Get tokenizer of token.

#date Source

date :: Token

A token of current date formetted ISO.

#httpVersion Source

httpVersion :: Token

A token of HTTP version.

#url Source

url :: Token

A token of request url.

#method Source

method :: Token

A token of request method.

#referrer Source

referrer :: Token

A token of referrer.

#userAgent Source

userAgent :: Token

A token of user agent.

#remoteAddr Source

remoteAddr :: Token

A token of remote address.

#status Source

status :: Token

A token of status code.

#responseTime Source

responseTime :: Token

A token of response time.