\HttpLog\UtilsHeaderUtils

Summary

Methods
Properties
Constants
get_request_headers()
get_response_headers()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get_request_headers()

get_request_headers(boolean  $as_json = false) : array|string

Get request headers.

Get all request headers using the predefined method, or a custom method, if it doesn't exist.

Parameters

boolean $as_json

Whether to return the request headers as formatted JSON string or an array.

Returns

array|string —

Request headers.

get_response_headers()

get_response_headers(boolean  $as_json = false) : array|string

Get response headers.

Get all request headers using the predefined method, or a custom method, if it doesn't exist.

Parameters

boolean $as_json

Whether to return the response headers as formatted JSON string or an array.

Returns

array|string —

Response headers.