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

Update request body reading for cowboy 0.10.0 #44

Merged

Conversation

scrogson
Copy link
Contributor

Rename collect_body to read_body and just delegate directly to the adapter.

defcallback stream_req_body(payload, limit :: pos_integer) ::
{:ok, data :: binary, payload} | {:done, payload}
defcallback read_req_body(payload, options :: Keyword.t) ::
{:ok, data :: binary, payload} | {:more, payload}
Copy link
Member

Choose a reason for hiding this comment

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

Should this include {:error, term} as we expect that from the adapter in Conn.read_body?

@ericmj
Copy link
Member

ericmj commented Jun 16, 2014

There is a test failing: https://travis-ci.org/elixir-lang/plug/builds/27652502#L411

josevalim pushed a commit that referenced this pull request Jun 16, 2014
Update request body reading for cowboy 0.10.0
@josevalim josevalim merged commit 6c09a63 into elixir-plug:master Jun 16, 2014
@scrogson scrogson deleted the replace_deprecated_function_calls branch June 16, 2014 13:37
Gazler pushed a commit to Gazler/plug that referenced this pull request Oct 18, 2018
…nction_calls

Update request body reading for cowboy 0.10.0
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.

None yet

3 participants