|
@@ -184,15 +184,15 @@ event_route[nghttp2:request] {
|
|
The event route is executed when a new HTTP request is received.
|
|
The event route is executed when a new HTTP request is received.
|
|
|
|
|
|
Inside it, the $nghttp2(...) group of variables is available, giving
|
|
Inside it, the $nghttp2(...) group of variables is available, giving
|
|
- access to several attributes of the HTTP request, such as method, URL,
|
|
|
|
- data (body) or headers.
|
|
|
|
|
|
+ access to several attributes of the HTTP request, such as method, URL
|
|
|
|
+ path, data (body) or headers.
|
|
...
|
|
...
|
|
...
|
|
...
|
|
loadmodule "nghttp2.so
|
|
loadmodule "nghttp2.so
|
|
...
|
|
...
|
|
event_route[nghttp2:request] {
|
|
event_route[nghttp2:request] {
|
|
- xinfo("request: $nghttp2(method) - url: $nghttp2(url) - data: [$nghttp2(data
|
|
|
|
-)]\n");
|
|
|
|
|
|
+ xinfo("request: $nghttp2(method) - url: $nghttp2(path) - data: [$nghttp2(dat
|
|
|
|
+a)]\n");
|
|
nghttp2_reply("200", "OK", "text/html",
|
|
nghttp2_reply("200", "OK", "text/html",
|
|
"<html><body>OK</body></html>");
|
|
"<html><body>OK</body></html>");
|
|
}
|
|
}
|