def send_response_body(self, response, chunks): for chunk in http1.assemble_body(response.headers, chunks): self.client_conn.wfile.write(chunk) self.client_conn.wfile.flush()
def send_request_body(self, request, chunks): for chunk in http1.assemble_body(request.headers, chunks, request.trailers): self.server_conn.wfile.write(chunk) self.server_conn.wfile.flush()
def send_response_body(self, response, chunks): for chunk in http1.assemble_body(response.headers, chunks, response.trailers): self.client_conn.wfile.write(chunk) self.client_conn.wfile.flush()
def send_request_body(self, request, chunks): for chunk in http1.assemble_body(request.headers, chunks): self.server_conn.wfile.write(chunk) self.server_conn.wfile.flush()