MessageFormatter
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()
: array<string|int, mixed>|string|null
-
headers()
: string
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}'
$template
private
mixed
$template
__construct()
public
__construct([mixed $template = self::CLF ]) : mixed
Parameters
-
$template
: mixed
= self::CLF
-
Return values
mixed
—
public
format(RequestInterface $request[, ResponseInterface $response = null ][, Exception $error = null ]) : array<string|int, mixed>|string|null
Parameters
-
$request
: RequestInterface
-
-
$response
: ResponseInterface
= null
-
-
$error
: Exception
= null
-
Return values
array<string|int, mixed>|string|null
—
private
headers(MessageInterface $message) : string
Parameters
-
$message
: MessageInterface
-
Return values
string
—