class documentation
class _HttpServerToClientMessageWriter(http.HttpMessageWriter):
Writes an HTTP response to client.
Method | __init__ |
Writes the response to the client. |
Method |
|
Logic to detect whether response should contain a message body. |
Instance Variable | _request |
Undocumented |
Instance Variable | _response |
Undocumented |
Inherited from HttpMessageWriter
:
Method | _ |
Serializes the HTTP message into a string. |
Method | _ |
Prepares the HTTP message by setting mandatory headers. |
Instance Variable | _msg |
Undocumented |
overrides
ganeti.http.HttpMessageWriter.__init__
Writes the response to the client.
Parameters | |
sock:socket | Target socket |
request | Request message, required to determine whether response may have a message body |
response | Response message |
write | Write timeout for socket |