We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\Parable\Http\Response
My production environment uses HTTP/2, so I suggest something like this to make it future-proof:
header("{$_SERVER['SERVER_PROTOCOL']} {$this->getHttpCode()} {$this->getHttpCodeText()}");
http://php.net/manual/en/function.header.php#92305
And please do throw away that array of HTTP status codes. It's not needed, because you can use http_response_code(). http://php.net/manual/en/function.http-response-code.php#116880
http_response_code()
The text was updated successfully, but these errors were encountered:
Will be fixed in 0.12.5.
Not the array, though ;)
Sorry, something went wrong.
Fixes for #10, #11, #12, #13, #14, #15 and #16. See CHANGELOG.md for …
59b7f07
…details.
Should be fixed in 0.12.5. Reopen if it requires fixes!
devvoh
No branches or pull requests
My production environment uses HTTP/2, so I suggest something like this to make it future-proof:
http://php.net/manual/en/function.header.php#92305
And please do throw away that array of HTTP status codes. It's not needed, because you can use
http_response_code()
. http://php.net/manual/en/function.http-response-code.php#116880The text was updated successfully, but these errors were encountered: