File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,13 +18,6 @@ We aren't in the NPM registry but you can easily install it with the NPM client:
1818
1919![ Untitled] ( https://github.com/user-attachments/assets/c887f49f-5e7a-446e-970d-f66b4d03cf4a )
2020
21- ### :gear : Environment variables
22-
23- | Variable | Description | Default |
24- | ---| ---| ---|
25- | ` UWS_HTTP_MAX_HEADERS_SIZE ` | Maximum total byte size of HTTP request headers (runtime env variable). | ` 4096 ` |
26- | ` UWS_HTTP_MAX_HEADERS_COUNT ` | Maximum number of HTTP request headers (compile-time define, not a runtime env variable). | ` 100 ` |
27-
2821### :handshake : Permissively licensed
2922Intellectual property, all rights reserved.
3023
Original file line number Diff line number Diff line change @@ -441,3 +441,15 @@ export var DEDICATED_DECOMPRESSOR_1KB: CompressOptions;
441441export var DEDICATED_DECOMPRESSOR_512B : CompressOptions ;
442442/** Sliding dedicated decompress window, requires 32KB of memory per socket (plus about 23KB) */
443443export var DEDICATED_DECOMPRESSOR : CompressOptions ;
444+
445+ /**
446+ * Environment variables recognized by uWebSockets.js.
447+ *
448+ * These can be set in the process environment before starting the server.
449+ */
450+ export namespace EnvironmentVariables {
451+ /** Maximum total byte size of HTTP request headers. This is a runtime env variable. Default: 4096. */
452+ declare const UWS_HTTP_MAX_HEADERS_SIZE : string | undefined ;
453+ /** Maximum number of HTTP request headers. This is a compile-time define, not a runtime env variable. Default: 100. */
454+ declare const UWS_HTTP_MAX_HEADERS_COUNT : string | undefined ;
455+ }
You can’t perform that action at this time.
0 commit comments