Accept and Content-Type headers

This commit is contained in:
2022-07-13 07:57:30 -05:00
parent 45aa67062f
commit c289690877
7 changed files with 252 additions and 60 deletions

View File

@@ -18,6 +18,8 @@ define library ./library.so
set host localhost:8000
# The following pages will respond to the host localhost:8000
set type text/html
# The following pages are html
read / site/index.html
# The path / should be read from site/index.html
read /hello site/hello.html
@@ -35,7 +37,9 @@ set host .*
read / site/easteregg.html
# The path / should be read from site/easteregg.html
set type image/png
read /egg.png site/egg.png
set type text/html
# The path /egg.png should be read from site/egg.png
read /alldomains site/alldomains.html
# The path /alldomains should be read from /site/alldomains.html