Update web-platform-tests to revision b9d4748d6a7f9b21bd420486955b44349aa005ea

This commit is contained in:
WPT Sync Bot 2019-05-30 10:23:26 +00:00
parent 0a9a222356
commit 28ed236c3a
76 changed files with 2158 additions and 581 deletions

View file

@ -0,0 +1,22 @@
# Python Handlers
Python file handlers are Python files which the server executes in response to
requests made to the corresponding URL. This is hooked up to a route like
`("*", "*.py", python_file_handler)`, meaning that any .py file will be
treated as a handler file (note that this makes it easy to write unsafe
handlers, particularly when running the server in a web-exposed setting).
The Python files must define a single function `main` with the signature::
main(request, response)
The wptserver implements a number of Python APIs for controlling traffic.
```eval_rst
.. toctree::
:maxdepth: 1
request
response
stash
```

View file

@ -0,0 +1,3 @@
```eval_rst
.. include:: ../../../tools/wptserve/docs/request.rst
```

View file

@ -0,0 +1,3 @@
```eval_rst
.. include:: ../../../tools/wptserve/docs/response.rst
```

View file

@ -0,0 +1,3 @@
```eval_rst
.. include:: ../../../tools/wptserve/docs/stash.rst
```