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.