diff options
author | metamuffin <metamuffin@disroot.org> | 2025-03-19 19:06:45 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-03-19 19:06:45 +0100 |
commit | d1feb3df35e491391a1600cbde00db9406629b3f (patch) | |
tree | b8e6fb0e3a393b37589f9384eb05dca5aa6e1000 /readme.md | |
parent | 7ae389f3b165a7b4f9b17ef96545f5430cfcd7bc (diff) | |
download | gnix-d1feb3df35e491391a1600cbde00db9406629b3f.tar gnix-d1feb3df35e491391a1600cbde00db9406629b3f.tar.bz2 gnix-d1feb3df35e491391a1600cbde00db9406629b3f.tar.zst |
debug method and switch http version
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -191,12 +191,13 @@ themselves; in that case the request is passed on. - Decides between two possible routes based on a condition. - `condition`: - `!is_websocket_upgrade`: Checks if a websocket was requested. - - `!is_get`: Checks if this is a GET request - - `!is_post`: Checks if this is a POST request + - `!is_{get,post,put,patch,options}`: Checks if this is a GET/... request - `!path_starts_with <prefix>`: Checks if the URI path starts with some prefix - `!path_is <path>`: Checks if the URI path is exactly what you specified - `!has_header <name>`: Checks if the request includes a certain header. + - `!http_version [n]`: Checks for HTTP version n where HTTP/0.9 is + considered 1 aswell. - `!any [conditions]`: Checks if any of a set of conditions are satisfied. - `!all [conditions]`: Checks if all conditions are satisfied. - `case_true` Handler with matched requests (module) @@ -258,7 +259,7 @@ themselves; in that case the request is passed on. - **module `debug`** - Replies with information about the request to debug. Includes source - address, HTTP version, URI and headers. + address, HTTP version, method, URI and headers. #### Credentials config format |