module documentation

Tests for twisted.web.client.Agent and related new client APIs.

Class AbortableStringTransport A version of StringTransport that supports abortConnection.
Class AgentHTTPSTests Tests for the new HTTP client API that depends on SSL.
Class AgentMethodInjectionTests Test client.Agent against HTTP method injections.
Class AgentTests Tests for the new HTTP client API provided by Agent.
Class AgentTestsMixin Tests for any IAgent implementation.
Class AgentURIInjectionTests Test client.Agent against URI injections.
Class AlreadyCompletedDummyResponse A dummy response that has already had its transport closed.
Class BadEndpoint An endpoint that shouldn't be called.
Class BrowserLikeRedirectAgentTests Tests for client.BrowserLikeRedirectAgent.
Class ContentDecoderAgentTests Tests for client.ContentDecoderAgent.
Class ContentDecoderAgentWithGzipTests No class docstring; 0/2 instance variable, 5/5 methods documented
Class CookieAgentTests Tests for twisted.web.client.CookieAgent.
Class CookieJarTests Tests for twisted.web.client._FakeUrllib2Response and twisted.web.client._FakeUrllib2Request's interactions with CookieJar instances.
Class CookieTestsMixin Mixin for unit tests dealing with cookies.
Class Decoder1 A test decoder to be used by client.ContentDecoderAgent tests.
Class Decoder2 A test decoder to be used by client.ContentDecoderAgent tests.
Class DummyEndpoint An endpoint that uses a fake transport.
Class DummyFactory Create StubHTTPProtocol instances.
Class DummyResponse Fake IResponse for testing readBody that captures the protocol passed to deliverBody and uses it to make a connection with a transport.
Class FakeReactorAndConnectMixin A test mixin providing a testable Reactor class and a dummy connect method which allows instances to pretend to be endpoints.
Class FileBodyProducerTests Tests for the FileBodyProducer which reads bytes from a file and writes them to an IConsumer.
Class FileConsumer Undocumented
Class HostnameCachingHTTPSPolicyTests No class docstring; 3/3 methods documented
Class HTTPConnectionPoolRetryTests client.HTTPConnectionPool, by using client._RetryingHTTP11ClientProtocol, supports retrying requests done against previously cached connections.
Class HTTPConnectionPoolTests Tests for the HTTPConnectionPool class.
Class IntegrationTestingMixin Transport-to-Agent integration tests for both HTTP and HTTPS.
Class ProxyAgentTests Tests for client.ProxyAgent.
Class ReadBodyTests Tests for client.readBody
Class RedirectAgentTests Tests for client.RedirectAgent.
Class RequestMethodInjectionTests Test client.Request against HTTP method injections.
Class RequestURIInjectionTests Test client.Request against HTTP URI injections.
Class RequestWriteToMethodInjectionTests Test client.Request.writeTo against HTTP method injections.
Class RequestWriteToURIInjectionTests Test client.Request.writeTo against HTTP method injections.
Class SimpleAgentProtocol A Protocol to be used with an client.Agent to receive data.
Class StubEndpointFactory A stub IAgentEndpointFactory for use in testing.
Class StubHTTPProtocol A protocol like HTTP11ClientProtocol but which does not actually know HTTP/1.1 and only collects requests in a list.
Class WebClientContextFactoryTests Tests for the context factory wrapper for web clients twisted.web.client.WebClientContextFactory.
Constant EXAMPLE_COM_IP Undocumented
Constant EXAMPLE_COM_V6_IP Undocumented
Constant EXAMPLE_NET_IP Undocumented
Constant EXAMPLE_ORG_IP Undocumented
Constant FOO_COM_IP Undocumented
Constant FOO_LOCAL_IP Undocumented
Constant SENSITIVE_HEADERS Undocumented
Class _RedirectAgentTestsMixin Test cases mixin for RedirectAgentTests and BrowserLikeRedirectAgentTests.
EXAMPLE_COM_IP: str = (source)

Undocumented

Value
'127.0.0.7'
EXAMPLE_COM_V6_IP: str = (source)

Undocumented

Value
'::7'
EXAMPLE_NET_IP: str = (source)

Undocumented

Value
'127.0.0.8'
EXAMPLE_ORG_IP: str = (source)

Undocumented

Value
'127.0.0.9'
FOO_COM_IP: str = (source)

Undocumented

Value
'127.0.0.11'
FOO_LOCAL_IP: str = (source)

Undocumented

Value
'127.0.0.10'
SENSITIVE_HEADERS: list[bytes] = (source)

Undocumented

Value
[b'authorization',
 b'cookie',
 b'cookie2',
 b'proxy-authorization',
 b'www-authenticate']