Releases: CorpusPHP/HttpMessageUtils
Adds psr/http-message support
What's Changed
Dependency Update
- Update php-mock/php-mock-phpunit requirement from ^2.6 to ^2.7 by @dependabot in #19
Full Changelog: v0.4.1...v0.5.0
v0.4.1
What's Changed
Fixes a bug where ResponseSender could not overwrite default headers set by PHP/Apache/etc.
- Update friendsofphp/php-cs-fixer requirement from ^3.0 to ^3.1 by @dependabot in #7
- Update friendsofphp/php-cs-fixer requirement from ^3.1 to ^3.3 by @dependabot in #10
- Update corpus/coding-standard requirement from ^0.4.0 to ^0.6.0 by @dependabot in #14
- Update guzzlehttp/psr7 requirement from ^1.8 to ^1.9 by @dependabot in #13
- Update squizlabs/php_codesniffer requirement from ^3.6 to ^3.7 by @dependabot in #12
- Bump actions/checkout from 2 to 3 by @dependabot in #16
Full Changelog: v0.4.0...v0.4.1
Adds AuthorizationHeaderParser
Adds
- AuthorizationHeaderParser
The new AuthorizationHeaderParser parses an RFC conforming Authorization
header into type and credentials.
Adds Port Detection
Adds
- ProxyAwareSchemer::withDetectedPort
Updates
Adds forwarded port detection to
- ProxyAwareSchemer::withDetectedScheme
- ProxyAwareSchemer::withUriWithDetectedScheme
⚠️ Warning - Minor Compatibility Break
ProxyAwareSchemer constructor argument order changed. This is leaning on the semantic versioning allowing 0.x to have breaking changes - and the fact that this library is only 22 days old. I'm not a fan of breaking changes but this became necessary to keep the library orderly.
I thoroughly apologize if this gives anyone grief.
Removes By-Ref $_SERVER Usage
Using $_SERVER
by reference is apparently problematic and breaks \phpinfo
Support PHP 7.2
PHP version requirement lowered from 7.3 to 7.2
Initial Release
First HttpMessageUtils release!
Includes:
- \Corpus\HttpMessageUtils\ProxyAwareSchemer
- \Corpus\HttpMessageUtils\ResponseSender