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

Implement X-Cocaine-HTTP-Proto-Version logic #12

Open
noxiouz opened this issue Jun 20, 2017 · 0 comments
Open

Implement X-Cocaine-HTTP-Proto-Version logic #12

noxiouz opened this issue Jun 20, 2017 · 0 comments

Comments

@noxiouz
Copy link
Contributor

noxiouz commented Jun 20, 2017

The X-Cocaine-HTTP-Proto-Version controls behavior of proxying replies from a cocaine application.
The idea was to allow to cocaine aplpications to force the proxy to finish a HTTP reply.

Usually proxy finishes HTTP reply as soon as Close message arrives (it's default behavior or if X-Cocaine-HTTP-Proto-Version == 1.0).
Alternative behavior is to finish HTTP reply on an empty body response (in case of X-Cocaine-HTTP-Proto-Version == 1.1)

https://github.com/cocaine/cocaine-tools/blob/master/cocaine/proxy/proxy.py#L758

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants