Skip to content

Commit

Permalink
Add 'network_stream' extension to HTTP/2 connections (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie authored Jun 16, 2023
1 parent eb5957d commit aacdbb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions httpcore/_async/http2.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ async def handle_async_request(self, request: Request) -> Response:
content=HTTP2ConnectionByteStream(self, request, stream_id=stream_id),
extensions={
"http_version": b"HTTP/2",
"network_stream": self._network_stream,
"stream_id": stream_id,
},
)
Expand Down
1 change: 1 addition & 0 deletions httpcore/_sync/http2.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def handle_request(self, request: Request) -> Response:
content=HTTP2ConnectionByteStream(self, request, stream_id=stream_id),
extensions={
"http_version": b"HTTP/2",
"network_stream": self._network_stream,
"stream_id": stream_id,
},
)
Expand Down

0 comments on commit aacdbb9

Please sign in to comment.