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

Minor improvements to building request bodies #7134

Merged
merged 2 commits into from
Jul 29, 2015
Merged

Minor improvements to building request bodies #7134

merged 2 commits into from
Jul 29, 2015

Conversation

markstory
Copy link
Member

Today I was working with an API that needed Content-ID set in the request bodies, and Http/Client did not make that easy. By allowing parts to be built and then added to the payload we can afford more use cases pretty easily.

This makes building parts by hand and adding them into the form data
much simpler as you can combine newPart() and add() together.
@markstory markstory added this to the 3.0.11 milestone Jul 29, 2015
@lorenzo
Copy link
Member

lorenzo commented Jul 29, 2015

Good idea! This should probably be added to be docs

lorenzo added a commit that referenced this pull request Jul 29, 2015
Minor improvements to building request bodies
@lorenzo lorenzo merged commit 9e82e2d into master Jul 29, 2015
@lorenzo lorenzo deleted the form-data branch July 29, 2015 22:15
markstory added a commit to cakephp/docs that referenced this pull request Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants