class documentation
class HttpMessageWriter(object):
Known subclasses: ganeti.http.server._HttpServerToClientMessageWriter
, server._HttpServerToClientMessageWriter
Writes an HTTP message to a socket.
Method | __init__ |
Initializes this class and writes an HTTP message to a socket. |
Method |
|
Checks whether the HTTP message contains a body. |
Method | _ |
Serializes the HTTP message into a string. |
Method | _ |
Prepares the HTTP message by setting mandatory headers. |
Instance Variable | _msg |
Undocumented |
overridden in
ganeti.http.server._HttpServerToClientMessageWriter
, server._HttpServerToClientMessageWriter
Initializes this class and writes an HTTP message to a socket.
Parameters | |
sock:socket | Socket to be written to |
msg:http.HttpMessage | HTTP message to be written |
write | Write timeout for socket |
overridden in
ganeti.http.server._HttpServerToClientMessageWriter
, server._HttpServerToClientMessageWriter
Checks whether the HTTP message contains a body.
Can be overridden by subclasses.