Пример #1
0
 def build_arg2(self) -> bytes:
     f = BytesIO()
     wrapper: IOWrapper = IOWrapper(f)
     h = KVHeaders(self.application_headers, 2)
     h.write_headers(wrapper)
     return f.getvalue()
Пример #2
0
 def process_arg2(self, b):
     f: BytesIO = BytesIO(b)
     wrapper: IOWrapper = IOWrapper(f)
     h: KVHeaders = KVHeaders.read_kv_headers(wrapper, 2,
                                              "ThriftFunctionResponse")
     self.application_headers = h.d