Module

Bucketchain.Logger.HTTP.Token

#Token

data Token

The type of a token for logger.

It has a label and a tokenizer.

#token

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

Constructor function of Token.

#label

label :: Token -> String

Get label of token.

#tokenizer

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

Get tokenizer of token.

#date

date :: Token

A token of current date formetted ISO.

#httpVersion

httpVersion :: Token

A token of HTTP version.

#url

url :: Token

A token of request url.

#method

method :: Token

A token of request method.

#referrer

referrer :: Token

A token of referrer.

#userAgent

userAgent :: Token

A token of user agent.

#remoteAddr

remoteAddr :: Token

A token of remote address.

#status

status :: Token

A token of status code.

#responseTime

responseTime :: Token

A token of response time.

Modules