Make ngx_http_v2_push_resource api public
nginx-forum at forum.nginx.org
Tue Nov 13 03:29:50 UTC 2018
I am intend to write an Nginx module which support downstream message push
through http2 protocol.
The main process is as below.
1. Client connect to Nginx and use http2 protocol to send a long polling
2. Nginx hold this long polling request stream and wait downstream
3. If a message arrival, Nginx could send a push promise through the long
polling stream and put the message in another stream associated with the
There is an ngx_http_v2_push_resource api in ngx_http_v2_filter_module.c
which assemble push promise frame and create another stream to invoke an
internal request by the specific path to send data, so i can register an
content handler with that path to send the message.
But sadly, this api is static somehow.
Would you make this amazing api public?
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,281920,281920#msg-281920
More information about the nginx