Part of twisted.web._newclient View Source View In Hierarchy
IConsumerproxy which enforces an exact length requirement on the total data written to it.
|Instance Variables||_length||The number of bytes remaining to be written.|
|_consumer||The consumer to which at most |
|Method||_allowNoMoreWrites||Indicate that no additional writes are allowed. Attempts to write after calling this method will be met with an exception.|
|Method||_noMoreWritesExpected||Called to indicate no more bytes will be written to this consumer. Check to see that the correct number have been written.|
bytesto the underlying consumer unless
_noMoreWritesExpectedhas been called or there are/have been too many bytes.
|Raises||WrongBodyLength||If not enough bytes have been written.|