Meta: Add an HTTP echo server to help with testing Browser JS

This allows us to simulate HTTP responses from Browser JS tests.
Instead of using hacks like data URLs to "load" external data,
we can now generate an actual HTTP response that contains
arbitrary headers, body, and has a defined response delay.
This commit is contained in:
Cory Virok
2024-10-14 14:31:55 -07:00
committed by Andrew Kaster
parent e4891af970
commit 97d47a38c9
3 changed files with 255 additions and 1 deletions

5
.gitignore vendored
View File

@@ -29,6 +29,7 @@ output/
.helix/
# Environments
.venv/
.venv*/
venv*/
@@ -46,6 +47,10 @@ Tests/LibWeb/WPT/wpt
Tests/LibWeb/WPT/metadata
Tests/LibWeb/WPT/MANIFEST.json
# HTTP Test server artifacts from ./Tests/LibWeb/Fixtures/http-test-server.py
http-test-server.pid.txt
http-test-server.log
Meta/CMake/vcpkg/user-variables.cmake
# Ensure that all files in /Base can be tracked, even if they match one of the above rules