MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / H3Response

Class H3Response

test/mitmproxy/addons/test_proxyserver.py:552–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550
551@dataclass
552class H3Response:
553 waiter: asyncio.Future[H3Response]
554 stream_id: int
555 headers: h3_events.H3Event | None = None
556 data: bytes | None = None
557 trailers: h3_events.H3Event | None = None
558 callback: Callable[[str], None] | None = None
559
560 async def wait_result(self) -> H3Response:
561 return await asyncio.wait_for(self.waiter, timeout=QuicClient.TIMEOUT)
562
563 def __setattr__(self, name: str, value: Any) -> None:
564 super().__setattr__(name, value)
565 if self.callback:
566 self.callback(name)
567
568
569class H3Client(QuicClient):

Callers 1

requestMethod · 0.85

Calls

no outgoing calls

Tested by 1

requestMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…