-
Notifications
You must be signed in to change notification settings - Fork 302
Allow Request to be extended by changing class name 'Request' to static #231
New issue
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
Conversation
Response\Headers lowercases header names.
Before header names were only lowercased when created by fromString.
|
I too would love to see this PR since I'm trying to extend Request as well. +1 |
Solves issue nategood#170: HTTP Header parsing is inconsistent
composer.json
Outdated
| { | ||
| "name": "nategood/httpful", | ||
| "description": "A Readable, Chainable, REST friendly, PHP HTTP Client", | ||
| "name": "bluehaoran/httpful", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these composer changes for the PR. Thanks.
| */ | ||
| public function offsetExists($offset) | ||
| { | ||
| return isset($this->headers[strtolower($offset)]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this would be a breaking change. It's one I'm for but I believe we'll need to wait to do this until the next major release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been three years since the last mayor release, and about one year since the last release. I think it's time for some breaking changes :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no strong feelings about this one, one way or another.
|
Composer.json rolled back as requested. |
|
Is there anything else we need to do to get this PR over the line? |
|
Replaced by #264 . |
New PR because I didn't target Dev last time.
Fixed a typo, and added static dereferencing, allowing Request to be extended (so I could add automatic HMAC signing on send()).