Test HTTP support.
Class | DummyPullProducerHandler | An HTTP request handler that registers a dummy pull producer to serve the body. |
Class | DateTimeTests | Test date parsing functions. |
Class | DummyHTTPHandler | Undocumented |
Class | DummyNewHTTPHandler | This is exactly like the DummyHTTPHandler but it takes only one argument
in its constructor, with no default arguments. This exists to test an
alternative code path in HTTPChannel . |
Class | DelayedHTTPHandler | Like DummyHTTPHandler ,
but doesn't respond immediately. |
Class | LoopbackHTTPClient | Undocumented |
Function | parametrizeTimeoutMixin | Parametrizes the TimeoutMixin
so that it works with whatever reactor is being used by the test. |
Class | ResponseTestMixin | A mixin that provides a simple means of comparing an actual response string to an expected response string by performing the minimal parsing. |
Class | HTTP1_0Tests | No class docstring; 9/9 methods documented |
Class | HTTP1_1Tests | Undocumented |
Class | HTTP1_1_close_Tests | Undocumented |
Class | HTTP0_9Tests | Undocumented |
Class | PipeliningBodyTests | Tests that multiple pipelined requests with bodies are correctly buffered. |
Class | ShutdownTests | Tests that connections can be shut down by http.Request
objects. |
Class | SecurityTests | Tests that http.Request.isSecure
correctly takes the transport into account. |
Class | GenericHTTPChannelTests | Tests for http._genericHTTPChannelProtocol , a HTTPChannel -alike
which can handle different HTTP protocol channels. |
Class | HTTPLoopbackTests | Undocumented |
Class | PersistenceTests | Tests for persistent HTTP connections. |
Class | IdentityTransferEncodingTests | Tests for _IdentityTransferDecoder . |
Class | ChunkedTransferEncodingTests | Tests for _ChunkedTransferDecoder ,
which turns a byte stream encoded using HTTP chunked
Transfer-Encoding back into the original byte stream. |
Class | ChunkingTests | No class docstring; 3/5 methods documented |
Class | ParsingTests | Tests for protocol parsing in HTTPChannel . |
Class | QueryArgumentsTests | No class docstring; 2/3 methods documented |
Class | ClientDriver | Undocumented |
Class | ClientStatusParsingTests | Undocumented |
Class | RequestTests | Tests for http.Request |
Class | MultilineHeadersTests | No summary |
Class | Expect100ContinueServerTests | Test that the HTTP server handles 'Expect: 100-continue' header correctly. |
Function | sub | Create a new dict containing only a subset of the items of an existing dict. |
Class | DeprecatedRequestAttributesTests | Tests for deprecated attributes of twisted.web.http.Request . |
Class | ChannelProductionTests | Tests for the way HTTPChannel manages backpressure. |
Class | HTTPChannelSanitizationTests | Test that HTTPChannel
sanitizes its output. |
Class | HTTPClientSanitizationTests | Test that http.HTTPClient
sanitizes its output. |
Class | _IDeprecatedHTTPChannelToRequestInterfaceProxy | Proxy _IDeprecatedHTTPChannelToRequestInterface .
Used to assert that the interface matches what HTTPChannel
expects. |
Function | _makeRequestProxyFactory | Return a callable that proxies instances of clsToWrap via
_IDeprecatedHTTPChannelToRequestInterface . |
Function | _prequest | Make a request with the given request headers for the persistence tests. |
Return a callable that proxies instances of C{clsToWrap} via L{_IDeprecatedHTTPChannelToRequestInterface}. @param clsToWrap: The class whose instances will be proxied. @type cls: L{_IDeprecatedHTTPChannelToRequestInterface} implementer. @return: A factory that returns L{_IDeprecatedHTTPChannelToRequestInterface} proxies. @rtype: L{callable} whose interface matches C{clsToWrap}'s constructor.
Parametrizes the TimeoutMixin
so that it works with whatever reactor is being used by the test.
Parameters | protocol | A _GenericHTTPChannel or something implementing a similar
interface. (type: _GenericHTTPChannel ) |
reactor | An IReactorTime
implementation. (type: IReactorTime ) | |
Returns | The channel , with its callLater method patched. |
Create a new dict containing only a subset of the items of an existing dict.
Parameters | keys | An iterable of the keys which will be added (with values from
d ) to the result. |
d | The existing dict
from which to copy items. | |
Returns | The new dict
with keys given by keys and values given by the corresponding
values in d . (type: dict ) |