-
-
Notifications
You must be signed in to change notification settings - Fork 868
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
Extensions docs #3080
Extensions docs #3080
Conversation
**Establishing the connection** | ||
|
||
* `"connection.connect_tcp"` | ||
* `"connection.connect_unix_socket"` | ||
* `"connection.start_tls"` | ||
|
||
**HTTP/1.1 events** | ||
|
||
* `"http11.send_request_headers"` | ||
* `"http11.send_request_body"` | ||
* `"http11.receive_response"` | ||
* `"http11.receive_response_body"` | ||
* `"http11.response_closed"` | ||
|
||
**HTTP/2 events** | ||
|
||
* `"http2.send_connection_init"` | ||
* `"http2.send_request_headers"` | ||
* `"http2.send_request_body"` | ||
* `"http2.receive_response_headers"` | ||
* `"http2.receive_response_body"` | ||
* `"http2.response_closed"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we shouldn't list all of the supported events here. We should remember to update this list every time we introduce a new event to httpcore. We could simply mention them in httpcore and provide a link here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(an automatic workflow here would also help - mkdocs plugins are easy to implement)
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
* Deprecate app=... in favour of explicit WSGITransport/ASGITransport * Linting * Linting * Update WSGITransport and ASGITransport docs * Deprecate app * Drop deprecation tests * Add CHANGELOG * Deprecate 'app=...' shortcut, rather than removing it. * Update CHANGELOG * Fix test_asgi.test_deprecated_shortcut * Extensions docs * Include 'extensions' in docs index * Update docs/advanced/extensions.md Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com> --------- Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
Closes #2599.
Mostly cribbed from the
httpcore
documentation.timeout
to reflect it as a lower priority in this case. Users should be using thetimeout=...
API withhttpx
.network_stream
docs don't currently include aCONNECT
example. In order to support this we'd need to be able to specify the request target explicitly, since we currently only support requests that use the standard HTTP/1.1 abs-path. Supporting atarget
request extension would allow us to supportOPTIONS *
requests, proxy absolute-url requests, non-standard path quoting andCONNECT
requests.network_stream
docs don't currently include anUpgrade
example. This discussion correctly identifies that we need to handle theh11
tailing_data in order to properly support that. See Support connectionUpgrade
andCONNECT
. httpcore#872