Lines Matching refs:header
271 header = bytearray()
277 header.append(FIN | opcode)
278 header.append(payload_length)
282 header.append(FIN | opcode)
283 header.append(PAYLOAD_LEN_EXT16)
284 header.extend(struct.pack(">H", payload_length))
288 header.append(FIN | opcode)
289 header.append(PAYLOAD_LEN_EXT64)
290 header.extend(struct.pack(">Q", payload_length))
296 self.request.send(header + payload)
305 header = self.rfile.readline().decode().strip()
306 if not header:
308 head, value = header.split(':', 1)