Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
Called when HTTP channel got length of content in this request.

This method is not intended for users.

@param length: The length of the request body, as indicated by the
    request headers.  C{None} if the request headers do not indicate a
    length.

src/t/u/turtl-0.1.1/turtl/test/test_proxy.py   turtl(Download)
        channel.factory = proxy_factory
        request = proxy.TurtlProxyRequest(channel, False, reactor)
        request.gotLength(len(data))
        request.handleContentChunk(data)
        request.requestReceived(method, 'http://example.com%s' % (uri,),
 
        request = proxy.TurtlProxyRequest(channel, False, reactor)
        request.gotLength(0)
        request.requestReceived('GET', 'http://example.com:1234/foo/bar',
                                'HTTP/1.0')
 
        request = proxy.TurtlProxyRequest(channel, False, reactor)
        request.gotLength(0)
        request.requestReceived('GET', 'http://example.com:1234/foo/bar',
                                'HTTP/1.0')
 
        request = proxy.TurtlProxyRequest(channel, False, reactor)
        request.gotLength(0)
        request.requestReceived('GET', 'http://delicious.com:1234/foo/bar',
                                'HTTP/1.0')
 
        request = proxy.TurtlProxyRequest(channel, False, reactor)
        request.gotLength(0)
        request.requestHeaders.addRawHeader('x-priority', 'interactive')
        request.requestReceived('GET', 'http://delicious.com:1234/foo/bar',