HTTPDISPATCH
The HTTPDISPATCH element contains settings that only the standalone
dispatcher (httpdispatch) uses.
Syntax
<HTTPDISPATCH>
[<MAX_REQUEST_HEADER_SIZE>...</MAX_REQUEST_HEADER_SIZE>]
[<MAX_REQUEST_BODY_SIZE>...</MAX_REQUEST_BODY_SIZE>]
</HTTPDISPATCH>
Child elements
The HTTPDISPATCH element may contain the following child elements:
- Zero or one MAX_REQUEST_HEADER_SIZE element
- Zero or one MAX_REQUEST_BODY_SIZE element
Usage
You use the HTTPDISPATCH element to limit the size of the HTTP requests that
httpdispatch accepts. The FastCGI and ISAPI dispatchers ignore this element. With
those dispatchers, the limits of the web server apply.
The limits apply even when the configuration file has no HTTPDISPATCH element.
httpdispatch then uses the defaults: 65536 bytes (64 KB) for the request headers,
and 104857600 bytes (100 MB) for a request body. To change a limit, the configuration file must
contain the HTTPDISPATCH element. The
$(res.httpdispatch.max_request_header_size) and
$(res.httpdispatch.max_request_body_size) resources only have an effect through the elements that reference them. For how to change a
resource value at the command line, go to Override configuration resources.
The standalone GAS is for development only; provided to simplify your development setup and configuration. For deployment and production systems, you must include a web server.
Example
The default configuration file sets both limits from resources:
<INTERFACE_TO_CONNECTOR>
...
<PROMETHEUS> ... </PROMETHEUS>
<HTTPDISPATCH>
<MAX_REQUEST_HEADER_SIZE>$(res.httpdispatch.max_request_header_size)</MAX_REQUEST_HEADER_SIZE>
<MAX_REQUEST_BODY_SIZE>$(res.httpdispatch.max_request_body_size)</MAX_REQUEST_BODY_SIZE>
</HTTPDISPATCH>
</INTERFACE_TO_CONNECTOR>
Parent elements
This element is a child of the INTERFACE_TO_CONNECTOR element.