This module implements an embedded HTTP/2 server using nghttpd2 library.
| Parámetro | Tipo | Descripción |
|---|---|---|
| listen_addr | str | 3.2. listen_port (str) 3.3. event_callback (str) |
| listen_port | str | 3.3. event_callback (str) |
| event_callback | str | 3.1. listen_addr (str) |
| listen_addr | str | IPv4 address to listen for HTTP2 connection. If not set, then it listens on all local addresses (port has to be specified by listen_port parameter). |
| listen_port | str | Port or service name to listen for HTTP2 connection. |
| event_callback | str | The name of the function in the kemi configuration file (embedded scripting language such as Lua, Python, ...) to be executed instead of event_route[nghttp2:request] block. |
4.2. nghttp2_reply_header(name, value)
4.1. nghttp2_reply(code, body)
Send back a reply with body. The body can be empty string. Both parameters can contain variables.
Set a header to be added to reply. There can be up to 15 headers.
Copyright © 2024 asipto.com