class documentation

class _HttpServerToClientMessageWriter(http.HttpMessageWriter):

View In Hierarchy

Writes an HTTP response to client.

Method __init__ Writes the response to the client.
Method HasMessageBody Logic to detect whether response should contain a message body.
Instance Variable _request_msg Undocumented
Instance Variable _response_msg Undocumented

Inherited from HttpMessageWriter:

Method _FormatMessage Serializes the HTTP message into a string.
Method _PrepareMessage Prepares the HTTP message by setting mandatory headers.
Instance Variable _msg Undocumented
def __init__(self, sock, request_msg, response_msg, write_timeout):

Writes the response to the client.

Parameters
sock:socketTarget socket
request_msg:http.HttpMessageRequest message, required to determine whether response may have a message body
response_msg:http.HttpMessageResponse message
write_timeout:floatWrite timeout for socket
def HasMessageBody(self):

Logic to detect whether response should contain a message body.

_request_msg =

Undocumented

_response_msg =

Undocumented