http2: frames don't have a human_readable method
This commit is contained in:
parent
1ae73b9157
commit
8cec187f9a
|
@ -250,13 +250,13 @@ class HTTP2StateProtocol(object):
|
|||
self.tcp_handler.wfile.write(raw_bytes)
|
||||
self.tcp_handler.wfile.flush()
|
||||
if not hide and self.dump_frames: # pragma no cover
|
||||
print(frm.human_readable(">>"))
|
||||
print(">> " + repr(frm))
|
||||
|
||||
def read_frame(self, hide=False):
|
||||
while True:
|
||||
frm = http2.parse_frame(*http2.read_raw_frame(self.tcp_handler.rfile))
|
||||
if not hide and self.dump_frames: # pragma no cover
|
||||
print(frm.human_readable("<<"))
|
||||
print("<< " + repr(frm))
|
||||
|
||||
if isinstance(frm, hyperframe.frame.PingFrame):
|
||||
raw_bytes = hyperframe.frame.PingFrame(flags=['ACK'], payload=frm.payload).serialize()
|
||||
|
@ -341,7 +341,7 @@ class HTTP2StateProtocol(object):
|
|||
|
||||
if self.dump_frames: # pragma no cover
|
||||
for frm in frms:
|
||||
print(frm.human_readable(">>"))
|
||||
print(">> ", repr(frm))
|
||||
|
||||
return [frm.serialize() for frm in frms]
|
||||
|
||||
|
@ -359,7 +359,7 @@ class HTTP2StateProtocol(object):
|
|||
|
||||
if self.dump_frames: # pragma no cover
|
||||
for frm in frms:
|
||||
print(frm.human_readable(">>"))
|
||||
print(">> ", repr(frm))
|
||||
|
||||
return [frm.serialize() for frm in frms]
|
||||
|
||||
|
|
Loading…
Reference in New Issue