Пример #1
0
 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()
Пример #2
0
 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()
Пример #3
0
 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()
Пример #4
0
 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()