Package cherrypy :: Package wsgiserver :: Module wsgiserver3 :: Class CP_BufferedWriter
[hide private]
[frames] | no frames]

Class CP_BufferedWriter

source code

     object --+            
              |            
    _io._IOBase --+        
                  |        
_io._BufferedIOBase --+    
                      |    
     _io.BufferedWriter --+
                          |
                         CP_BufferedWriter

Faux file object attached to a socket object.

Instance Methods [hide private]
 
write(self, b)
Write the given buffer to the IO stream.
source code
 
_flush_unlocked(self) source code

Inherited from _io.BufferedWriter: __init__, __new__, __repr__, __sizeof__, close, detach, fileno, flush, isatty, readable, seek, seekable, tell, truncate, writable

Inherited from _io._BufferedIOBase: read, read1, readinto

Inherited from _io._IOBase: __enter__, __exit__, __iter__, next, readline, readlines, writelines

Inherited from _io._IOBase (private): _checkClosed, _checkReadable, _checkSeekable, _checkWritable

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Properties [hide private]

Inherited from _io.BufferedWriter: closed, mode, name, raw

Inherited from object: __class__

Method Details [hide private]

write(self, b)

source code 

Write the given buffer to the IO stream.

Returns the number of bytes written, which is never less than len(b).

Raises BlockingIOError if the buffer is full and the underlying raw stream cannot accept more data at the moment.

Overrides: _io._BufferedIOBase.write
(inherited documentation)