{"id":27114302,"url":"https://github.com/xenocrat/httpheader","last_synced_at":"2025-09-20T03:34:21.569Z","repository":{"id":80077213,"uuid":"323469716","full_name":"xenocrat/HTTPHeader","owner":"xenocrat","description":"A PHP class for inspecting HTTP headers.","archived":false,"fork":false,"pushed_at":"2024-11-16T18:24:16.000Z","size":254,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-16T19:27:01.735Z","etag":null,"topics":["http-headers","http-request","http-response","inspector","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xenocrat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-21T23:17:34.000Z","updated_at":"2024-11-16T18:24:19.000Z","dependencies_parsed_at":"2024-02-14T09:41:08.495Z","dependency_job_id":"68b2cbcf-0e14-4c60-a59a-a660b3a73f03","html_url":"https://github.com/xenocrat/HTTPHeader","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenocrat%2FHTTPHeader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenocrat%2FHTTPHeader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenocrat%2FHTTPHeader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenocrat%2FHTTPHeader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xenocrat","download_url":"https://codeload.github.com/xenocrat/HTTPHeader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247589814,"owners_count":20963022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http-headers","http-request","http-response","inspector","php"],"created_at":"2025-04-07T03:56:52.017Z","updated_at":"2025-09-20T03:34:21.559Z","avatar_url":"https://github.com/xenocrat.png","language":"PHP","readme":"## What is this?\n\nHTTPHeader is a PHP class for inspecting HTTP headers.\n\n## Requirements\n\n* PHP 8.0+\n\n## Usage\n\nMethods for inspecting response headers must be supplied with a string containing one or more headers, or a complete HTTP response.\n\nExamples:\n\n    use xenocrat\\HTTPHeader;\n    $result = HTTPHeader::Server(\"Server: Apache\");\n    $result = HTTPHeader::Server(\"Content-Type: text/plain\\r\\nServer: Apache\");\n    $result = HTTPHeader::Server(\"HTTP/1.1 200 OK\\r\\nServer: Apache\\r\\n\\r\\nHello, world!\");\n\nMethods for inspecting request headers can optionally be supplied with a string containing one or more headers, or a complete HTTP request; if not supplied with a string, these methods will attempt to read the value from the `$_SERVER` superglobal.\n\nExamples:\n\n    use xenocrat\\HTTPHeader;\n    $result = HTTPHeader::Accept();\n    $result = HTTPHeader::Accept(\"Accept: text/html, application/xhtml+xml\");\n    $result = HTTPHeader::Accept(\"Accept: text/html\\r\\nAccept-Encoding: gzip\");\n\nAll fields can be extracted from a string containing multiple headers, or from a complete HTTP request or response, using the `extract()` method. The return value is an associative array of arrays containing one entry for each occurence of a field:\n\nExample:\n\n    $result = HTTPHeader::extract($request_or_response);\n    print_r($result);\n    \n    Array\n    (\n        [CONTENT_TYPE] =\u003e Array\n            (\n                [0] =\u003e Array\n                    (\n                        [type] =\u003e text/plain\n                    )\n            )\n        [SERVER] =\u003e Array\n            (\n                [0] =\u003e Array\n                    (\n                        [0] =\u003e Array\n                            (\n                                [product] =\u003e Apache\n                            )\n                    )\n            )\n    )\n\n## Methods\n\nMethods will return `false` if the header field is not present or empty, and `null` if the field value is noticeably malformed.\n\n#### `Accept($string = null)`\n\nReturns an array sorted by \"q\" value.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e text/html\n        [1] =\u003e application/xhtml+xml\n        [2] =\u003e image/webp\n        [3] =\u003e application/xml;q=0.9\n        [4] =\u003e */*;q=0.8\n    )\n\n#### `Accept_CH($string)`\n\nReturns an array of client hint headers.\n\n#### `Accept_Charset($string = null)`\n\nReturns an array sorted by \"q\" value.\n\n#### `Accept_Encoding($string = null)`\n\nReturns an array sorted by \"q\" value.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e gzip\n        [1] =\u003e deflate\n    )\n\n#### `Accept_Language($string = null)`\n\nReturns an array sorted by \"q\" value.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e en-GB\n        [1] =\u003e en;q=0.7\n        [2] =\u003e en-US;q=0.3\n    )\n\n#### `Accept_Patch($string)`\n\nReturns an array of media types.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e application/example\n        [1] =\u003e text/example;charset=utf-8\n    )\n\n#### `Accept_Post($string)`\n\nReturns an array of media types.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e image/webp\n        [1] =\u003e text/example;charset=utf-8\n    )\n\n#### `Accept_Ranges($string)`\n\nReturns a range unit.\n\n#### `Access_Control_Allow_Credentials($string)`\n\nReturns `true` if the value is \"true\", or `null` otherwise.\n\n#### `Access_Control_Allow_Headers($string)`\n\nReturns an array of headers.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Accept\n        [1] =\u003e Upgrade-Insecure-Requests\n    )\n\n#### `Access_Control_Allow_Methods($string)`\n\nReturns an array of method names.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e POST\n        [1] =\u003e GET\n        [2] =\u003e OPTIONS\n    )\n\n#### `Access_Control_Allow_Origin($string)`\n\nReturns the string `\"*\"`, the string `\"null\"` if the value is \"null\", or the result of `parse_url()` on the supplied value.\n\n#### `Access_Control_Expose_Headers($string)`\n\nReturns an array of headers.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Content-Encoding\n    )\n\n#### `Access_Control_Max_Age($string)`\n\nReturns a non-negative integer representing the number of seconds.\n\n#### `Access_Control_Request_Headers($string = null)`\n\nReturns an array of headers.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Content-Type\n    )\n\n#### `Access_Control_Request_Method($string = null)`\n\nReturns the method name.\n\n#### `Age($string)`\n\nReturns a non-negative integer representing a time delta in seconds.\n\n#### `Allow($string)`\n\nReturns an array of method names.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e GET\n        [1] =\u003e POST\n        [2] =\u003e HEAD\n    )\n\n#### `Alt_Svc($string)`\n\nReturns the string `\"clear\"`, or an array of associative arrays containing the parameters for each alternative service.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [protocol] =\u003e h3-25\n                [host] =\u003e \n                [port] =\u003e 443\n                [ma] =\u003e 3600\n                [persist] =\u003e \u003ctrue|false\u003e\n            )\n        [1] =\u003e Array\n            (\n                [protocol] =\u003e h2\n                [host] =\u003e example.com\n                [port] =\u003e 443\n                [ma] =\u003e 3600\n                [persist] =\u003e \u003ctrue|false\u003e\n            )\n    )\n\n#### `Alt_Used($string = null)`\n\nReturns an associative array containing the host, and port if supplied.\n\nExample:\n\n    Array\n    (\n        [host] =\u003e example.com\n        [port] =\u003e 80\n    )\n\n#### `Authorization($string = null)`\n\nReturns an array containing the authorization type and parameters.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Basic\n        [1] =\u003e YWxhZGRpbjpvcGVuc2VzYW1l\n    )\n\n#### `Cache_Control($string = null)`\n\nReturns an array of directives.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e only-if-cached\n    )\n\n#### `Clear_Site_Data($string)`\n\nReturns an array of directives.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e storage\n        [1] =\u003e cookies\n    )\n\n#### `Connection($string = null)`\n\nReturns an array of directives.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e keep-alive\n    )\n\n#### `Content_Disposition($string)`\n\nReturns an associative array containing the content disposition, field name and filename (if supplied).\n\nExample:\n\n    Array\n    (\n        [disposition] =\u003e attachment\n        [filename] =\u003e filename.jpg\n    )\n\n#### `Content_Encoding($string)`\n\nReturns an array of encoding formats in the order in which they were applied.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e deflate\n        [1] =\u003e gzip\n    )\n\n#### `Content_Language($string = null)`\n\nReturns an array of language tags.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e en-GB\n        [1] =\u003e en\n    )\n\n#### `Content_Length($string = null)`\n\nReturns the content length in decimal number of octets.\n\n#### `Content_Location($string)`\n\nReturns a string.\n\n#### `Content_Range($string)`\n\nReturns an associative array containing the unit, range, and size.\n\nExample:\n\n    Array\n    (\n        [unit] =\u003e bytes\n        [range] =\u003e 200-1000\n        [size] =\u003e 67589\n    )\n\n#### `Content_Security_Policy($string)`\n\nReturns an array of arrays containing the policy directive and values.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [0] =\u003e default-src\n                [1] =\u003e Array\n                    (\n                        [0] =\u003e self\n                        [1] =\u003e nonce-DhcnhD3khTMePgXwdayK9BsMqXjhguVV\n                    )\n            )\n        [1] =\u003e Array\n            (\n                [0] =\u003e form-action\n                [1] =\u003e Array\n                    (\n                        [0] =\u003e self\n                    )\n            )\n\n#### `Content_Security_Policy_Report_Only($string)`\n\nSee above.\n\n#### `Content_Type($string = null)`\n\nReturns an associative array containing the content type, charset and boundary (if supplied).\n\nExample:\n\n    Array\n    (\n        [type] =\u003e multipart/form-data\n        [boundary] =\u003e something\n    )\n\n#### `Cookie($string = null)`\n\nReturns an array of arrays containing the cookie names and value.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [0] =\u003e Session\n                [1] =\u003e 0ae5ab57925bcbee58917d552acb4cd4\n            )\n    )\n\n#### `Cross_Origin_Embedder_Policy($string)`\n\nReturns a policy directive.\n\n#### `Cross_Origin_Opener_Policy($string)`\n\nReturns a policy directive.\n\n#### `Cross_Origin_Resource_Policy($string)`\n\nReturns a policy directive.\n\n#### `Date($string = null)`\n\nReturns a DateTimeImmutable object.\n\nExample:\n\n    DateTimeImmutable Object\n    (\n        [date] =\u003e 2015-10-21 07:28:00.000000\n        [timezone_type] =\u003e 2\n        [timezone] =\u003e GMT\n    )\n\n#### `Device_Memory($string = null)`\n\nReturns a non-negative float representing the device memory in GiB.\n\n#### `Digest($string)`\n\nReturns an array of arrays containing the digest algorithms and values.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [0] =\u003e sha-256\n                [1] =\u003e X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n            )\n        [1] =\u003e Array\n            (\n                [0] =\u003e unixsum\n                [1] =\u003e 30637\n            )\n    )\n\n#### `Downlink($string = null)`\n\nReturns a non-negative float representing the downlink rate in Mbps.\n\n#### `DNT($string = null)`\n\nReturns the integer `0`, `1`, or `null` if the value is indeterminate.\n\n#### `ECT($string = null)`\n\nReturns a string identifying the effective connection type, or `null` if the value is indeterminate.\n\n#### `ETag($string)`\n\nReturns an ETag value.\n\n#### `Expect($string = null)`\n\nReturns the integer `100` if the value is \"100-continue\", or `null` otherwise.\n\n#### `Expires($string)`\n\nReturns a DateTimeImmutable object.\n\nExample:\n\n    DateTimeImmutable Object\n    (\n        [date] =\u003e 2015-10-21 07:28:00.000000\n        [timezone_type] =\u003e 2\n        [timezone] =\u003e GMT\n    )\n\n#### `Forwarded($string = null)`\n\nReturns an array of fields, each containing an associative array of directives.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [for] =\u003e 192.0.2.60\n                [proto] =\u003e http\n                [by] =\u003e 203.0.113.43\n            )\n        [1] =\u003e Array\n            (\n                [for] =\u003e 198.51.100.17\n            )\n    )\n\n#### `From($string = null)`\n\nReturns a string containing the supplied email address.\n\n#### `Host($string = null)`\n\nReturns an associative array containing the host, and port if supplied.\n\nExample:\n\n    Array\n    (\n        [host] =\u003e example.com\n        [port] =\u003e 80\n    )\n\n#### `If_Match($string = null)`\n\nReturns an array of ETag values.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e W/\"67ab43\"\n        [1] =\u003e \"54ed21\"\n        [2] =\u003e \"7892dd\"\n    )\n\n#### `If_Modified_Since($string = null)`\n\nReturns a DateTimeImmutable object.\n\nExample:\n\n    DateTimeImmutable Object\n    (\n        [date] =\u003e 2015-10-21 07:28:00.000000\n        [timezone_type] =\u003e 2\n        [timezone] =\u003e GMT\n    )\n\n#### `If_None_Match($string = null)`\n\nReturns an array of ETag values.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e W/\"67ab43\"\n        [1] =\u003e \"54ed21\"\n        [2] =\u003e \"7892dd\"\n    )\n\n#### `If_Range($string = null)`\n\nReturns a DateTimeImmutable object, or an array of ETag values.\n\n#### `If_Unmodified_Since($string = null)`\n\nReturns a DateTimeImmutable object.\n\nExample:\n\n    DateTimeImmutable Object\n    (\n        [date] =\u003e 2015-10-21 07:28:00.000000\n        [timezone_type] =\u003e 2\n        [timezone] =\u003e GMT\n    )\n\n#### `Keep_Alive($string = null)`\n\nReturns an associative array of parameters.\n\nExample:\n\n    Array\n    (\n        [timeout] =\u003e 5\n        [max] =\u003e 1000\n    )\n\n#### `Last_Modified($string)`\n\nReturns a DateTimeImmutable object.\n\nExample:\n\n    DateTimeImmutable Object\n    (\n        [date] =\u003e 2015-10-21 07:28:00.000000\n        [timezone_type] =\u003e 2\n        [timezone] =\u003e GMT\n    )\n\n#### `Link($string)`\n\nReturns an array of arrays containing the link URI and an array of parameters.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [0] =\u003e https://one.example.com\n                [1] =\u003e Array\n                    (\n                        [0] =\u003e Array\n                            (\n                                [0] =\u003e rel\n                                [1] =\u003e preconnect\n                            )\n                    )\n            )\n        [1] =\u003e Array\n            (\n                [0] =\u003e https://two.example.com\n                [1] =\u003e Array\n                    (\n                        [0] =\u003e Array\n                            (\n                                [0] =\u003e rel\n                                [1] =\u003e preconnect\n                            )\n                        [1] =\u003e Array\n                            (\n                                [0] =\u003e foo\n                                [1] =\u003e bar\n                            )\n                    )\n            )\n    )\n\n#### `Location($string)`\n\nReturns a string.\n\n#### `Max_Forwards($string = null)`\n\nReturns a non-negative integer.\n\n#### `Origin($string = null)`\n\nReturns the result of `parse_url()` on the supplied value.\n\nExample:\n\n    Array\n    (\n        [scheme] =\u003e https\n        [host] =\u003e example.com\n    )\n\n#### `Permissions_Policy($string)`\n\nReturns an array of arrays containing the policy directive and values.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [0] =\u003e picture-in-picture\n                [1] =\u003e Array\n                    (\n                    )\n            )\n        [1] =\u003e Array\n            (\n                [0] =\u003e geolocation\n                [1] =\u003e Array\n                    (\n                        [0] =\u003e self\n                        [1] =\u003e https://example.com\n                    )\n            )\n        [2] =\u003e Array\n            (\n                [0] =\u003e camera\n                [1] =\u003e Array\n                    (\n                        [0] =\u003e *\n                    )\n            )\n    )\n\n#### `Pragma($string = null)`\n\nReturns an array of directives.\n\n#### `Proxy_Authenticate($string)`\n\nReturns an array of arrays containing the authentication type and parameters.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [0] =\u003e Basic\n                [1] =\u003e realm=\"foo\"\n            )\n        [1] =\u003e Array\n            (\n                [0] =\u003e Other\n                [1] =\u003e realm=\"bar\"\n            )\n    )\n\n#### `Proxy_Authorization($string = null)`\n\nReturns an array containing the authorization type and parameters.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Basic\n        [1] =\u003e YWxhZGRpbjpvcGVuc2VzYW1l\n    )\n\n#### `Range($string = null)`\n\nReturns an associative array containing the unit and ranges.\n\nExample:\n\n    Array\n    (\n        [unit] =\u003e bytes\n        [ranges] =\u003e Array\n            (\n                [0] =\u003e 200-1000\n                [1] =\u003e 2000-6576\n                [2] =\u003e 19000-\n            )\n    )\n\n#### `Referer($string = null)`\n\nReturns the result of `parse_url()` on the supplied value.\n\nExample:\n\n    Array\n    (\n        [scheme] =\u003e https\n        [host] =\u003e example.com\n        [path] =\u003e /foo/\n    )\n\n#### `Referrer_Policy($string)`\n\nReturns a directive.\n\n#### `Retry_After($string)`\n\nReturns a DateTimeImmutable object, or a non-negative integer representing the delay in seconds.\n\n#### `RTT($string = null)`\n\nReturns a non-negative integer representing the approximate round trip time in milliseconds.\n\n#### `Save_Data($string = null)`\n\nReturns the integer `0` for falsey values, `1` for truthy values, or `null` if the value is indeterminate.\n\n#### `Sec_Fetch_Dest($string = null)`\n\nReturns a directive.\n\n#### `Sec_Fetch_Mode($string = null)`\n\nReturns a directive.\n\n#### `Sec_Fetch_Site($string = null)`\n\nReturns a directive.\n\n#### `Sec_Fetch_User($string = null)`\n\nReturns `true` if the value is \"?1\", or `null` otherwise.\n\n#### `Sec_GPC($string = null)`\n\nReturns `true` if the value is \"1\", or `null` otherwise.\n\n#### `Sec_Purpose($string = null)`\n\nReturns a directive.\n\n#### `Server($string)`\n\nReturns an array of associative arrays containing the product, version and comment (if supplied).\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [product] =\u003e Apache\n                [version] =\u003e 2.4.1\n                [comment] =\u003e Unix\n            )\n    )\n\n#### `Server_Timing($string)`\n\nReturns an array of associative arrays containing the metric name, description and duration (if supplied).\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [name] =\u003e db\n                [dur] =\u003e 53\n            )\n        [1] =\u003e Array\n            (\n                [name] =\u003e cache\n                [desc] =\u003e Cache Read\n                [dur] =\u003e 23.2\n            )\n    )\n\n#### `Service_Worker_Navigation_Preload($string = null)`\n\nReturns a string.\n\n#### `Set_Cookie($string)`\n\nReturns an array of arrays containing the cookie name and value, and an associative array of parameter values.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [0] =\u003e Session\n                [1] =\u003e 0ae5ab57925bcbee58917d552acb4cd4\n            )\n        [1] =\u003e Array\n            (\n                [Path] =\u003e /\n                [Domain] =\u003e example.com\n                [SameSite] =\u003e \n                [Expires] =\u003e DateTimeImmutable Object\n                    (\n                        [date] =\u003e 2015-10-21 07:28:00.000000\n                        [timezone_type] =\u003e 2\n                        [timezone] =\u003e GMT\n                    )\n                [Max-Age] =\u003e 20\n                [HttpOnly] =\u003e \u003ctrue|false\u003e\n                [Secure] =\u003e \u003ctrue|false\u003e\n                [Partitioned] =\u003e \u003ctrue|false\u003e\n            )\n    )\n\n#### `Set_Login($string)`\n\nReturns the string `\"logged-in\"`, the string `\"logged-out\"`, or `null` if the value is indeterminate.\n\n#### `SourceMap($string)`\n\nReturns a string.\n\n#### `Strict_Transport_Security($string)`\n\nReturns an associative array of parameter values.\n\nExample:\n\n    Array\n    (\n        [max-age] =\u003e 63072000\n        [includeSubDomains] =\u003e \u003ctrue|false\u003e\n        [preload] =\u003e \u003ctrue|false\u003e\n    )\n\n#### `TE($string = null)`\n\nReturns an array sorted by \"q\" value.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e trailers\n        [1] =\u003e gzip\n        [2] =\u003e deflate;q=0.5\n    ) \n\n#### `Timing_Allow_Origin($string)`\n\nReturns the string `\"*\"`, or an array containing the results of `parse_url()` on each of the supplied values.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [scheme] =\u003e https\n                [host] =\u003e mozilla.org\n            )\n        [1] =\u003e Array\n            (\n                [scheme] =\u003e http\n                [host] =\u003e example.com\n            )\n    )\n\n#### `Tk($string)`\n\nReturns one of the strings `!`, `?`, `G`, `N`, `T`, `C`, `P`, `D`, `U`, or `null` if the value is indeterminate.\n\n#### `Trailer($string)`\n\nReturns an array of field names.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Expires\n        [1] =\u003e Date\n    )\n\n#### `Transfer_Encoding($string)`\n\nReturns an array of encoding formats in the order in which they were applied.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e gzip\n        [1] =\u003e chunked\n    )\n\n#### `Upgrade($string = null)`\n\nReturns an array of protocols in order of preference.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e HTTP/2\n        [1] =\u003e HTTP/1.1\n    ) \n\n#### `Upgrade_Insecure_Requests($string = null)`\n\nReturns the integer `0`, `1`, or `null` if the value is indeterminate.\n\n#### `User_Agent($string = null)`\n\nReturns an array of associative arrays containing the product, version and comment (if supplied).\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [product] =\u003e Mozilla\n                [version] =\u003e 5.0\n                [comment] =\u003e Windows NT 10.0; Win64; x64; rv:109.0\n            )\n        [1] =\u003e Array\n            (\n                [product] =\u003e Gecko\n                [version] =\u003e 20100101\n            )\n        [2] =\u003e Array\n            (\n                [product] =\u003e Firefox\n                [version] =\u003e 115.0\n            )\n    )\n\n#### `Vary($string)`\n\nReturns the string `\"*\"`, or an array of field names.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Cookie\n        [1] =\u003e Save-Data\n    )\n\n#### `Via($string = null)`\n\nReturns an array of associative arrays containing the details supplied by each proxy.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [protocol] =\u003e HTTP\n                [version] =\u003e 1.0\n                [pseudonym] =\u003e foo\n            )\n        [1] =\u003e Array\n            (\n                [version] =\u003e 1.1\n                [pseudonym] =\u003e bar\n            )\n        [2] =\u003e Array\n            (\n                [version] =\u003e 1.1\n                [pseudonym] =\u003e example.com\n                [port] =\u003e 80\n                [comment] =\u003e this is a comment\n            )\n    )\n\n#### `Want_Digest($string = null)`\n\nReturns an array sorted by \"q\" value.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e sha-256;q=1\n        [1] =\u003e SHA-512;q=0.3\n        [2] =\u003e md5;q=0\n    )\n\n#### `WWW_Authenticate($string)`\n\nReturns an array of arrays containing the authentication type and parameters.\n\nExample:\n\n    Array\n    (\n        [0] =\u003e Array\n            (\n                [0] =\u003e scheme1\n                [3] =\u003e realm=\"foo\"\n                [4] =\u003e param1=token1\n                [5] =\u003e param2=token2\n            )\n        [1] =\u003e Array\n            (\n                [0] =\u003e scheme2\n                [1] =\u003e token68\n                [2] =\u003e realm=\"bar\"\n            )\n        [2] =\u003e Array\n            (\n                [0] =\u003e scheme3\n            )\n    )\n\n#### `X_Content_Type_Options($string)`\n\nReturns the string `\"nosniff\"`, or `null` if the value is indeterminate.\n\n#### `X_Frame_Options($string)`\n\nReturns a directive.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenocrat%2Fhttpheader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxenocrat%2Fhttpheader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenocrat%2Fhttpheader/lists"}