Variable | logger |
Undocumented |
Class | _RequestBodyProducer |
Undocumented |
Class | _ResponseReader |
Undocumented |
Class | HTTP11DownloadHandler |
No class docstring; 0/7 instance variable, 0/1 class variable, 1/3 method, 0/1 class method documented |
Class | ScrapyAgent |
Undocumented |
Class | ScrapyProxyAgent |
No class docstring; 0/1 instance variable, 1/2 method documented |
Class | TunnelError |
An HTTP CONNECT tunnel could not be established by the proxy. |
Class | TunnelingAgent |
No summary |
Class | TunnelingTCP4ClientEndpoint |
No summary |
Function | tunnel_request_data |
Return binary content of a CONNECT request. |
Return binary content of a CONNECT request.
>>> from scrapy.utils.python import to_unicode as s >>> s(tunnel_request_data("example.com", 8080)) 'CONNECT example.com:8080 HTTP/1.1\r\nHost: example.com:8080\r\n\r\n' >>> s(tunnel_request_data("example.com", 8080, b"123")) 'CONNECT example.com:8080 HTTP/1.1\r\nHost: example.com:8080\r\nProxy-Authorization: 123\r\n\r\n' >>> s(tunnel_request_data(b"example.com", "8090")) 'CONNECT example.com:8090 HTTP/1.1\r\nHost: example.com:8090\r\n\r\n'