twisted.web.test.test_newclient.StringProducer class documentationtwisted.web.test.test_newclient
(View In Hierarchy)
Implements interfaces: twisted.web.iweb.IBodyProducer
StringProducer
is a dummy body producer.
| Instance Variable | stopped | A flag which indicates whether or not stopProducinghas been 
called. | 
| Instance Variable | consumer | After startProducingis called, the value of theconsumerargument to that method. | 
| Instance Variable | finished | After startProducingis called, aDeferredwhich
was returned by that method.StringProducerwill never fire thisDeferred. | 
| Method | __init__ | Undocumented | 
| Method | startProducing | Start producing to the given IConsumerprovider. | 
| Method | stopProducing | No summary | 
startProducing is called, a Deferred which
was returned by that method.  StringProducer
will never fire this Deferred.
  Start producing to the given IConsumer
provider.
| Returns | A Deferredwhich stops production of data whenDeferred.cancelis called, and which fires withNonewhen all bytes have been produced or with aFailureif 
there is any problem before all bytes have been produced. | |
In addition to the standard behavior of IProducer.stopProducing
(stop producing data), make sure the Deferred 
returned by startProducing is never fired.