Did I find the right examples for you? yes no

All Samples(8)  |  Call(0)  |  Derive(0)  |  Import(8)
An U{HTTP 1.1<http://www.w3.org/Protocols/rfc2616/rfc2616.html>} client.

The way to use the functionality provided by this module is to:

  - Connect a L{HTTP11ClientProtocol} to an HTTP server
  - Create a L{Request} with the appropriate data
  - Pass the request to L{HTTP11ClientProtocol.request}
  - The returned Deferred will fire with a L{Response} object
  - Create a L{IProtocol} provider which can handle the response body
  - Connect it to the response with L{Response.deliverBody}(more...)

src/b/u/build-tools-HEAD/lib/python/slavealloc/client.py   build-tools(Download)

src/o/o/ooniprobe-1.0.1/ooni/utils/trueheaders.py   ooniprobe(Download)
 
from zope.interface import implements
from twisted.web import client, _newclient, http_headers
from twisted.web._newclient import Request, RequestNotSent, RequestGenerationFailed, TransportProxyProducer, STATUS
from twisted.internet import protocol, reactor

src/o/o/ooni-probe-HEAD/ooni/utils/trueheaders.py   ooni-probe(Download)
 
from zope.interface import implements
from twisted.web import client, _newclient, http_headers
from twisted.web._newclient import Request, RequestNotSent, RequestGenerationFailed, TransportProxyProducer, STATUS
from twisted.internet import protocol, reactor

src/t/o/Tor2web-3.0-HEAD/tor2web/t2w.py   Tor2web-3.0(Download)
from twisted.internet.endpoints import TCP4ClientEndpoint, SSL4ClientEndpoint
from twisted.protocols.policies import WrappingFactory
from twisted.web import http, client, _newclient
from twisted.web.error import SchemeNotSupported
from twisted.web.http import datetimeToString, StringTransport, _IdentityTransferDecoder, _ChunkedTransferDecoder, parse_qs

src/p/a/paisley-HEAD/paisley/changes.py   paisley(Download)
 
        # FIXME: poking at internals to get failures ? Yuck!
        from twisted.web import _newclient
        if reason.check(_newclient.ResponseFailed):
            if reason.value.reasons[0].check(error.ConnectionDone) and \

src/s/o/softlayer-object-storage-0.5.1/object_storage/transport/twist.py   softlayer-object-storage(Download)
def print_error(failure):
    from twisted.web import _newclient
    if failure.check(_newclient.RequestGenerationFailed):
        for f in failure.value.reasons:
            print f.getTraceback()

src/s/o/softlayer-object-storage-python-HEAD/object_storage/transport/twist.py   softlayer-object-storage-python(Download)
def print_error(failure):
    from twisted.web import _newclient
    if failure.check(_newclient.RequestGenerationFailed):
        for f in failure.value.reasons:
            print f.getTraceback()

src/p/a/paisley-HEAD/paisley/test/test_changes.py   paisley(Download)
        self.failIf(reason.check(error.ConnectionDone))
 
        from twisted.web import _newclient
        self.failUnless(reason.check(_newclient.ResponseFailed))