servo/tests/wpt/web-platform-tests/tools/quic
2020-06-02 13:10:28 +00:00
..
certs Update web-platform-tests to revision 85ffed21f7a96f6d67a5a0110459d67f50cff624 2020-05-13 11:06:53 +00:00
__init__.py
commands.json Update web-platform-tests to revision 8fd32a0f7c18d32ae9e147d267746accc3ee9ad5 2020-05-30 10:56:10 +00:00
quic_transport_server.py Update web-platform-tests to revision 8fd32a0f7c18d32ae9e147d267746accc3ee9ad5 2020-05-30 10:56:10 +00:00
README.md Update web-platform-tests to revision fd60ba25a0726dfea59024d8143240b355c46a55 2020-06-02 13:10:28 +00:00
requirements.txt Update web-platform-tests to revision e529eb9501876273c9612f5602bc530723a01147 2020-05-29 11:22:44 +00:00
serve.py Update web-platform-tests to revision 8fd32a0f7c18d32ae9e147d267746accc3ee9ad5 2020-05-30 10:56:10 +00:00

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.