(stream)
| 15 | buf = stream.read(size) |
| 16 | return struct.unpack(fmt, buf) |
| 17 | def unpack_string(stream): |
| 18 | size, = unpack(stream, ">h") |
| 19 | if size == -1: # null string |
| 20 | return None |
| 21 | res, = unpack(stream, "%ds" % size) |
| 22 | stream.read(1) # \0 |
| 23 | return res |
| 24 | class NotFoundException(Exception): |
| 25 | pass |
| 26 | class AjpBodyRequest(object): |
no test coverage detected