tree: 0912b4aec43ce65328ef5e54513854efb5012f42 [path history] [tgz]
  1. certs/
  2. __init__.py
  3. commands.json
  4. quic_transport_server.py
  5. README.md
  6. requirements.txt
  7. serve.py
  8. w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/tools/quic/README.md

This directory contains QUIC related tools.

QuicTransport

quic_transport_server.py implements a simple QuicTransport server for testing. It uses aioquic, and test authors can implement custom handlers by putting python scripts in wpt/webtransport/quic/handlers/.

Custom Handlers

The QuicTransportServer calls functions defined in each handler script.

  • handle_client_indication is called during the client indication process. This function is called with three arguments:

    A handler can abort the client indication process either by raising an exception or closing the connection.

  • handle_event is called when a QuicEvent arrives.

    This function is not called until the client indication process finishes successfully.