(tctx: context.Context)
| 363 | |
| 364 | |
| 365 | def start_h3_proxy(tctx: context.Context) -> tuple[tutils.Playbook, FrameFactory]: |
| 366 | tctx.client.alpn = b"h3" |
| 367 | tctx.client.transport_protocol = "udp" |
| 368 | tctx.server.transport_protocol = "udp" |
| 369 | |
| 370 | playbook = tutils.Playbook(layers.HttpLayer(tctx, layers.http.HTTPMode.regular)) |
| 371 | cff = FrameFactory(conn=tctx.client, is_client=True) |
| 372 | assert ( |
| 373 | playbook |
| 374 | << cff.send_init() |
| 375 | >> cff.receive_init() |
| 376 | << cff.send_encoder() |
| 377 | >> cff.receive_encoder() |
| 378 | ) |
| 379 | return playbook, cff |
| 380 | |
| 381 | |
| 382 | def make_h3(open_connection: commands.OpenConnection) -> None: |
no test coverage detected
searching dependent graphs…