Skip to content

Conversation

@legionth
Copy link
Contributor

@legionth legionth commented Mar 9, 2017

As preparation for the upcoming PSR-7 feature, this PR will remove the expectsContinue and writeContinues methods from the Response and Request classes, because it is not compatible with the ResponseInterface and the RequestInterface of PSR-7.

The server sends now a the HTTP/1.1 100 Continue response automatically.
The possibility to handle this behavior is removed, but will be added again after the PSR-7 implemantation is completed.

Some of the details are already discussed in #109.

Copy link
Member

@clue clue left a comment

Choose a reason for hiding this comment

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

This makes perfect sense and in fact makes much more sense than #143, let's get this in! :shipit:

@clue clue added this to the v0.7.0 milestone Mar 9, 2017
README.md Outdated
sending the actual (large) message body.
In this case the server will automatically send an intermediary `HTTP/1.1 100 Continue` response to the client.
This ensures you will receive the request body without a delay as expected.
The [Response](#response) still needs to be created as described in the examples above.
Copy link
Member

Choose a reason for hiding this comment

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

@legionth This block of documentation should be in line with the Server class, can you verify?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the block to the Server class

@legionth legionth force-pushed the send-continue-automatically branch from a91877f to 0c66dc1 Compare March 9, 2017 23:04
src/Server.php Outdated
* headers with an additional `Expect: 100-continue` header and wait before
* sending the actual (large) message body.
* In this case the server will automatically send an intermediary `HTTP/1.1 100 Continue` response to the client.
* This ensures you will receive the request body without a delay as expected.
Copy link
Member

Choose a reason for hiding this comment

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

Does this really make sense as documentation for the ctor? 🙄

Also, may I ask you to wrap the lines at a reasonable length? Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved the documentation to the Server docblock and adapted the line length.

@legionth legionth force-pushed the send-continue-automatically branch from 0c66dc1 to 57a6e89 Compare March 10, 2017 09:47
@legionth
Copy link
Contributor Author

Ping @clue . Updated the documentation.

README.md Outdated
`HTTP/1.1 100 Continue` response to the client.
This ensures you will receive the request body without a delay as expected.
The [Response](#response) still needs to be created as described in the
examples above.
Copy link
Member

Choose a reason for hiding this comment

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

👊 The text LGTM, but I still feel that this is the wrong location. Move this up where the request/body is described?

@legionth legionth force-pushed the send-continue-automatically branch from 57a6e89 to 7ab9154 Compare March 11, 2017 03:03
Copy link
Member

@clue clue left a comment

Choose a reason for hiding this comment

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

Changes LGTM, now let's get this in and get the ball rolling (PSR-7 that is) :shipit:

@clue clue added the BC break label Mar 11, 2017
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.

4 participants