Exception
treq.auth.UnknownAuthConfig
- The authentication config provided couldn't be interpreted.object
treq.test.local_httpbin.test.test_child.BufferedStandardOut
- A standard out that whose ``buffer`` is a :py:class:`FlushableBytesIO` instance.treq.test.local_httpbin.test.test_child.FakeThreadPool
- A fake :py:class:`twisted.python.threadpool.ThreadPool`treq.test.local_httpbin.test.test_child.FakeThreadPoolState
- State for :py:class:`FakeThreadPool`.treq.test.local_httpbin.test.test_child.FlushableBytesIO
- A :py:class:`io.BytesIO` wrapper that records flushes.treq.test.local_httpbin.test.test_child.FlushableBytesIOState
- State for :py:class:`FlushableBytesIO`treq.test.local_httpbin.test.test_parent.FakeProcessTransport
- A fake process transport.treq.test.local_httpbin.test.test_parent.FakeProcessTransportState
- State for :py:class:`FakeProcessTransport`.treq.test.local_httpbin.test.test_parent.SpawnedProcess
- A call to :py:class:`MemoryProcessReactor.spawnProcess`.proxyForInterface(IProtocol)
treq.client._BodyBufferingProtocol
- UndocumentedproxyForInterface(IResponse)
treq.client._BufferedResponse
- Undocumentedtreq.response._Response
- A wrapper for :class:`twisted.web.iweb.IResponse` which manages cookies and adds a few convenience methods.treq._agentspy._AgentSpy
- An agent that records HTTP requeststreq._agentspy.RequestRecord
- The details of a call to :meth:`_AgentSpy.request`treq.auth._RequestHeaderSetterAgent
- Wrap an agent to set request headerstreq.client.HTTPClient
- No class docstring; 0/3 instance variable, 9/10 methods documentedtreq.multipart._Header
- `_Header` This class is a tiny wrapper that produces request headers. We can't use standard python header class because it encodes unicode fields using =? bla bla ?= encoding, which is correct, but no one in HTTP world expects that, everyone wants utf-8 raw bytes.treq.multipart._LengthConsumer
- `_LengthConsumer` is used to calculate the length of the multi-part request. The easiest way to do that is to consume all the fields, but instead writing them to the string just accumulate the request length.treq.multipart.MultiPartProducer
- :class:`MultiPartProducer` takes parameters for a HTTP request and produces bytes in multipart/form-data format defined in :rfc:`2388` and :rfc:`2046`.treq.test.local_httpbin.parent._HTTPBinProcess
- Manage an ``httpbin`` server process.treq.test.local_httpbin.shared._HTTPBinDescription
- Describe an ``httpbin`` process.treq.test.test_api.SyntacticAbominationHTTPConnectionPool
- A HTTP connection pool that always fails to return a connection, but counts the number of requests made.treq.test.test_response.FakeResponse
- Undocumentedtreq.testing._EndpointFactory
- An endpoint factory used by :class:`RequestTraversalAgent`.treq.testing._SynchronousProducer
- A partial implementation of an :obj:`IBodyProducer` which produces its entire payload immediately. There is no way to access to an instance of this object from :obj:`RequestTraversalAgent` or :obj:`StubTreq`, or even a :obj:`Resource: passed to :obj:`StubTreq`.treq.testing.HasHeaders
- Since Twisted adds headers to a request, such as the host and the content length, it's necessary to test whether request headers CONTAIN the expected headers (the ones that are not automatically added by Twisted).treq.testing.RequestSequence
- For an example usage, see :meth:`RequestSequence.consume`.treq.testing.RequestTraversalAgent
- :obj:`~twisted.web.iweb.IAgent` implementation that issues an in-memory request rather than going out to a real network socket.treq.testing.StubTreq
- A fake version of the treq module that can be used for testing that provides all the function calls exposed in :obj:`treq.__all__`.twisted.internet.protocol.Protocol
treq.content._BodyCollector
- Undocumentedtwisted.protocols.basic.LineOnlyReceiver
treq.test.local_httpbin.parent._HTTPBinServerProcessProtocol
- Manage the lifecycle of an ``httpbin`` process.twisted.test.proto_helpers.MemoryReactor
treq.test.local_httpbin.test.test_parent.MemoryProcessReactor
- A fake :py:class:`IReactorProcess` and :py:class:`IReactorCore` provider to be used in tests.twisted.test.proto_helpers.StringTransport
treq.test.local_httpbin.test.test_parent.FakeProcessTransport
- A fake process transport.twisted.trial.unittest.SynchronousTestCase
treq.test.local_httpbin.test.test_child.CertificatesForAuthorityAndServerTests
- Tests for :py:func:`child._certificates_for_authority_and_server`treq.test.local_httpbin.test.test_child.ForeverHTTPBinTests
- Tests for :py:func:`_forever_httpbin`treq.test.local_httpbin.test.test_child.MakeHTTPBinSiteTests
- Tests for :py:func:`_make_httpbin_site`.treq.test.local_httpbin.test.test_child.OutputProcessDescriptionTests
- Tests for :py:func:`_output_process_description`treq.test.local_httpbin.test.test_child.ServeTCPTests
- Tests for :py:func:`_serve_tcp`treq.test.local_httpbin.test.test_child.ServeTLSTests
- Tests for :py:func:`_serve_tls`treq.test.local_httpbin.test.test_parent.FakeProcessTransportTests
- Tests for :py:class:`FakeProcessTransport`.treq.test.local_httpbin.test.test_parent.HTTPBinProcessTests
- Tests for :py:class:`_HTTPBinProcesss`.treq.test.local_httpbin.test.test_parent.HTTPServerProcessProtocolTests
- Tests for :py:class:`parent._HTTPBinServerProcessProtocol`treq.test.local_httpbin.test.test_parent.MemoryProcessReactorTests
- Tests for :py:class:`MemoryProcessReactor`treq.test.local_httpbin.test.test_shared.HTTPBinDescriptionTests
- Tests for :py:class:`shared._HTTPBinDescription`treq.test.test_agentspy.APISpyTests
- The agent_spy API provides an agent that records each request made to it.treq.test.test_auth.AddAuthTests
- No class docstring; 5/5 methods documentedtreq.test.test_auth.RequestHeaderSetterAgentTests
- No class docstring; 0/2 instance variable, 1/4 method documentedtreq.test.test_response.ResponseTests
- No class docstring; 4/11 methods documentedtwisted.trial.unittest.TestCase
treq.test.test_api.DefaultPoolTests
- Test `treq.api.default_pool`.treq.test.test_api.DefaultReactorTests
- Test `treq.api.default_reactor()`treq.test.test_api.TreqAPITests
- No class docstring; 6/6 methods documentedtreq.test.test_client.BodyBufferingProtocolTests
- Undocumentedtreq.test.test_client.BufferedResponseTests
- Undocumentedtreq.test.test_client.HTTPClientTests
- No class docstring; 0/6 instance variable, 19/50 methods documentedtreq.test.test_content.ContentTests
- No class docstring; 0/2 instance variable, 4/16 methods documentedtreq.test.test_multipart.LengthConsumerTestCase
- Tests for the _LengthConsumer, an L{IConsumer} which is used to compute the length of a produced content.treq.test.test_multipart.MultiPartProducerTestCase
- Tests for the L{MultiPartProducer} which gets dictionary like object with post parameters, converts them to mutltipart/form-data format and feeds them to an L{IConsumer}.treq.test.test_testing.HasHeadersTests
- Tests for :obj:`HasHeaders`.treq.test.test_testing.RequestSequenceTests
- Tests for :obj:`RequestSequence`.treq.test.test_testing.StringStubbingTests
- Tests for :obj:`StringStubbingResource`.treq.test.test_testing.StubbingTests
- Tests for :class:`StubTreq`.treq.test.test_treq_integration.TreqIntegrationTests
- No class docstring; 0/3 instance variable, 0/7 class variable, 1/26 method documentedtreq.test.test_treq_integration.HTTPSTreqIntegrationTests
- Undocumentedtwisted.web.resource.Resource
treq.test.test_testing._EventuallyResponsiveTestResource
- Resource that returns NOT_DONE_YET and stores the request so that something else can finish the response later.treq.test.test_testing._NonResponsiveTestResource
- Resource that returns NOT_DONE_YET and never finishes the requesttreq.test.test_testing._RedirectResource
- Resource that redirects to a different domain.treq.test.test_testing._SessionIdTestResource
- Resource that returns the current session ID.treq.test.test_testing._StaticTestResource
- Resource that always returns 418 "I'm a teapottreq.testing.StringStubbingResource
- A resource that takes a callable with 5 parameters ``(method, url, params, headers, data)`` and returns ``(code, headers, body)``.