Skip to content

headers_list() returns a list of headers as strings#1770

Merged
ondrejmirtes merged 2 commits intophpstan:1.8.xfrom
johnbillion:headers-list
Oct 13, 2022
Merged

headers_list() returns a list of headers as strings#1770
ondrejmirtes merged 2 commits intophpstan:1.8.xfrom
johnbillion:headers-list

Conversation

@johnbillion
Copy link
Contributor

Example return value from headers_list():

array(6) {
  [0]=>
  string(24) "X-Powered-By: PHP/8.0.19"
  [1]=>
  string(38) "Expires: Wed, 11 Jan 1984 05:00:00 GMT"
  [2]=>
  string(51) "Cache-Control: no-cache, must-revalidate, max-age=0"
  [3]=>
  string(48) "Referrer-Policy: strict-origin-when-cross-origin"
  [4]=>
  string(27) "X-Frame-Options: SAMEORIGIN"
  [5]=>
  string(38) "Content-Type: text/html; charset=UTF-8"
}

Ref: https://www.php.net/manual/en/function.headers-list.php

@ondrejmirtes ondrejmirtes merged commit 7c7bbbe into phpstan:1.8.x Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments