HTTP2 Implementation

This is the basic server-side protocol implementation used by the Twisted Web server for HTTP2. This functionality is intended to be combined with the HTTP/1.1 and HTTP/1.0 functionality in twisted.web.http to provide complete protocol support for HTTP-type protocols.

This API is currently considered private because it's in early draft form. When it has stabilised, it'll be made public.

Variable __all__ Undocumented
Class H2Connection A class representing a single HTTP/2 connection.
Class H2Stream A class representing a single HTTP/2 stream.
Variable _END_STREAM_SENTINEL Undocumented
Function _addHeaderToRequest Add a header tuple to a request header object.
__all__ =
Undocumented
(type: List)
_END_STREAM_SENTINEL =
Undocumented
def _addHeaderToRequest(request, header): (source)

Add a header tuple to a request header object.

ParametersrequestThe request to add the header tuple to. (type: twisted.web.http.Request)
headerThe header tuple to add to the request. (type: A tuple with two elements, the header name and header value, both as bytes.)
ReturnsIf the header being added was the Content-Length header. (type: bool)
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.