diff options
author | metamuffin <metamuffin@disroot.org> | 2025-03-18 23:16:42 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-03-18 23:16:42 +0100 |
commit | e21267342c74927a1f9255b4ea02fac32961031a (patch) | |
tree | ba60b12f93bbe768d40b50729ad42353af804834 /readme.md | |
parent | 412b0b810e9e1fd8feac9edea9034121739b4f8f (diff) | |
download | gnix-e21267342c74927a1f9255b4ea02fac32961031a.tar gnix-e21267342c74927a1f9255b4ea02fac32961031a.tar.bz2 gnix-e21267342c74927a1f9255b4ea02fac32961031a.tar.zst |
limits module
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -219,6 +219,8 @@ themselves; in that case the request is passed on. - `bin`: Path to the CGI binary (string) - `user`: User that the script is executed as. Requires to run gnix as root. (optional string) + - `args`: List of arguments. (list of string) + - `env`: Environment variables. (map from string to string) - **module `cache`** - Caches requests. **This is experimental! Don't use this.** @@ -240,6 +242,20 @@ themselves; in that case the request is passed on. this. **TODO request size limit** - Takes a sequence of handlers. +- **module `limits`** + - Limits size and transmission rate of request and response bodies. The limit + is enforced on an internal data frame level and does therefore not exactly + reach the specified limits, but never exceeds them. + - `{request,response}.rate` Maximum transmission rate in bytes per second. + (number) + - `{request,response}.rate_buffer` How much transmission time can be + accumulated by not reading for some time in milliseconds. (number) + - `{request,response}.rate_buffer_filled` If the rate buffer is filled up + initially. (boolean) + - `{request,response}.size` Maximum total body size. The body is cut off + before the frame that exceeds this limit. Therefore the body is up to one + frame size smaller than allowed. + - **module `debug`** - Replies with information about the request to debug. Includes source address, HTTP version, URI and headers. |