class H2ClientProtocol(Protocol, TimeoutMixin):
Undocumented
Constant | IDLE_TIMEOUT |
Undocumented |
Method | __init__ |
No summary |
Method | _check_received_data |
Checks for edge cases where the connection to remote fails without raising an appropriate H2Error |
Method | _handle_events |
Private method which acts as a bridge between the events received from the HTTP/2 data and IH2EventsHandler |
Method | _lose_connection_with_error |
Helper function to lose the connection with the error sent as a reason |
Method | _new_stream |
Instantiates a new Stream object |
Method | _send_pending_requests |
Initiate all pending requests from the deque following FIFO We make sure that at any time {allowed_max_concurrent_streams} streams are active. |
Method | _write_to_transport |
Write data to the underlying transport connection from the HTTP2 connection instance if any |
Method | connection_terminated |
Undocumented |
Method | connectionLost |
Called by Twisted when the transport connection is lost. No need to write anything to transport here. |
Method | connectionMade |
Called by Twisted when the connection is established. We can start sending some data now: we should open with the connection preamble. |
Method | data_received |
Undocumented |
Method | dataReceived |
Undocumented |
Method | handshakeCompleted |
Close the connection if it's not made via the expected protocol |
Method | pop_stream |
Perform cleanup when a stream is closed |
Method | request |
Undocumented |
Method | response_received |
Undocumented |
Method | settings_acknowledged |
Undocumented |
Method | stream_ended |
Undocumented |
Method | stream_reset |
Undocumented |
Method | timeoutConnection |
Called when the connection times out. We lose the connection with TimeoutError |
Method | window_updated |
Undocumented |
Instance Variable | _conn_lost_deferred |
Undocumented |
Instance Variable | _conn_lost_errors |
Undocumented |
Instance Variable | _pending_request_stream_pool |
Undocumented |
Instance Variable | _stream_id_generator |
Undocumented |
Instance Variable | conn |
Undocumented |
Instance Variable | metadata |
Undocumented |
Instance Variable | streams |
Undocumented |
Property | allowed_max_concurrent_streams |
No summary |
Property | h2_connected |
Boolean to keep track of the connection status. This is used while initiating pending streams to make sure that we initiate stream only during active HTTP/2 Connection |
settings -- Scrapy project settings conn_lost_deferred -- Deferred fires with the reason: Failure to notify
that connection was lost
Parameters | |
uri:URI | Undocumented |
settings:Settings | Undocumented |
conn_lost_deferred:Deferred | Undocumented |
Checks for edge cases where the connection to remote fails without raising an appropriate H2Error
Parameters | |
data:bytes | Undocumented |
Private method which acts as a bridge between the events received from the HTTP/2 data and IH2EventsHandler
Parameters | |
events:List[ | Undocumented |
Parameters | |
errors:List[ | Undocumented |
Parameters | |
request:Request | Undocumented |
spider:Spider | Undocumented |
Returns | |
Stream | Undocumented |
Undocumented
Parameters | |
event:ConnectionTerminated | Undocumented |
Parameters | |
reason:Failure | Undocumented |
Parameters | |
stream_id:int | Undocumented |
Returns | |
Stream | Undocumented |
Undocumented
Parameters | |
request:Request | Undocumented |
spider:Spider | Undocumented |
Returns | |
Deferred | Undocumented |
Undocumented
Parameters | |
event:SettingsAcknowledged | Undocumented |