module documentation

Test HTTP support.

Class ChannelProductionTests Tests for the way HTTPChannel manages backpressure.
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; 0/1 class variable, 3/5 methods documented
Class ClientDriver Undocumented
Class ClientStatusParsingTests Undocumented
Class DateTimeTests Test date parsing functions.
Class DelayedHTTPHandler Like DummyHTTPHandler, but doesn't respond immediately.
Class DeprecatedRequestAttributesTests Tests for deprecated attributes of twisted.web.http.Request.
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 DummyPullProducerHandler An HTTP request handler that registers a dummy pull producer to serve the body.
Class Expect100ContinueServerTests Test that the HTTP server handles 'Expect: 100-continue' header correctly.
Class GenericHTTPChannelTests Tests for http._genericHTTPChannelProtocol, a HTTPChannel-alike which can handle different HTTP protocol channels.
Class HexHelperTests Test the http._hexint and http._ishexdigits helper functions.
Class HTTP0_9Tests Undocumented
Class HTTP1_0Tests No class docstring; 0/2 class variable, 9/9 methods documented
Class HTTP1_1_close_Tests Undocumented
Class HTTP1_1Tests Undocumented
Class HTTPChannelSanitizationTests Test that HTTPChannel sanitizes its output.
Class HTTPClientSanitizationTests Test that http.HTTPClient sanitizes its output.
Class HTTPLoopbackTests Undocumented
Class IdentityTransferEncodingTests Tests for _IdentityTransferDecoder.
Class LoopbackHTTPClient Undocumented
Class MultilineHeadersTests Tests to exercise handling of multiline headers by HTTPClient. RFCs 1945 (HTTP 1.0) and 2616 (HTTP 1.1) state that HTTP message header fields can span multiple lines if each extra line is preceded by at least one space or horizontal tab.
Class ParsingTests Tests for protocol parsing in HTTPChannel.
Class PersistenceTests Tests for persistent HTTP connections.
Class PipeliningBodyTests Tests that multiple pipelined requests with bodies are correctly buffered.
Class QueryArgumentsTests No class docstring; 2/2 methods documented
Class RequestTests Tests for http.Request
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 SecurityTests Tests that http.Request.isSecure correctly takes the transport into account.
Class ShutdownTests Tests that connections can be shut down by http.Request objects.
Function parametrizeTimeoutMixin Parametrizes the TimeoutMixin so that it works with whatever reactor is being used by the test.
Function sub Create a new dict containing only a subset of the items of an existing dict.
Variable DelayedHTTPHandlerProxy Undocumented
Variable DummyHTTPHandlerProxy Undocumented
Variable DummyNewHTTPHandlerProxy Undocumented
Variable DummyPullProducerHandlerProxy Undocumented
Class _IDeprecatedHTTPChannelToRequestInterfaceProxy Proxy _IDeprecatedHTTPChannelToRequestInterface. Used to assert that the interface matches what HTTPChannel expects.
Function _makeRequestProxyFactory No summary
Function _prequest Make a request with the given request headers for the persistence tests.
def parametrizeTimeoutMixin(protocol, reactor): (source)

Parametrizes the TimeoutMixin so that it works with whatever reactor is being used by the test.

Parameters
protocol:_GenericHTTPChannelA _GenericHTTPChannel or something implementing a similar interface.
reactor:IReactorTimeAn IReactorTime implementation.
Returns
The channel, with its callLater method patched.
def sub(keys, d): (source)

Create a new dict containing only a subset of the items of an existing dict.

Parameters
keysAn iterable of the keys which will be added (with values from d) to the result.
dThe existing dict from which to copy items.
Returns
dictThe new dict with keys given by keys and values given by the corresponding values in d.
DelayedHTTPHandlerProxy = (source)

Undocumented

DummyHTTPHandlerProxy = (source)

Undocumented

DummyNewHTTPHandlerProxy = (source)

Undocumented

DummyPullProducerHandlerProxy = (source)

Undocumented

def _makeRequestProxyFactory(clsToWrap): (source)
def _prequest(**headers): (source)

Make a request with the given request headers for the persistence tests.