Skip to content
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

avoid confusion about request #158

Merged
merged 1 commit into from
Oct 18, 2016
Merged

avoid confusion about request #158

merged 1 commit into from
Oct 18, 2016

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Sep 16, 2016

No description provided.

You can replace it and pass a new version downstream if you need.

.. note::

Be aware that the request is immutable.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i found this mostly confusing. i can't tell what we wanted to say with this. we say that you can replace the request for a new version that you pass downstream. what else is there to say? the note made me wonder if the request would not be allowed to be changed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it is just a gental reminder that you can to:

$request->withAddedHeader('Foo', 'Bar');

Im okey with removing it.

@dbu
Copy link
Contributor Author

dbu commented Oct 18, 2016

@php-http/owners ok if we merge this?

@Nyholm
Copy link
Member

Nyholm commented Oct 18, 2016

Im okey

@dbu dbu merged commit a484ddb into master Oct 18, 2016
@dbu dbu deleted the request-immutable branch October 18, 2016 09:18
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.

3 participants