MessageFormatter
in package
Table of Contents
- CLF = "{hostname} {req_header_User-Agent} - [{date_common_log}] \"{method} {target} HTTP/{version}\" {code} {res_header_Content-Length}"
- DEBUG = ">>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"
- SHORT = '[{ts}] "{method} {target} HTTP/{version}" {code}'
- $template : mixed
- __construct() : mixed
- format() : mixed
- headers() : mixed
Constants
CLF
public
mixed
CLF
= "{hostname} {req_header_User-Agent} - [{date_common_log}] \"{method} {target} HTTP/{version}\" {code} {res_header_Content-Length}"
DEBUG
public
mixed
DEBUG
= ">>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"
SHORT
public
mixed
SHORT
= '[{ts}] "{method} {target} HTTP/{version}" {code}'
Properties
$template
private
mixed
$template
Methods
__construct()
public
__construct([mixed $template = self::CLF ]) : mixed
Parameters
- $template : mixed = self::CLF
Return values
mixed —format()
public
format(RequestInterface $request[, ResponseInterface $response = null ][, Exception $error = null ]) : mixed
Parameters
- $request : RequestInterface
- $response : ResponseInterface = null
- $error : Exception = null
Return values
mixed —headers()
private
headers(MessageInterface $message) : mixed
Parameters
- $message : MessageInterface