[PATCH] HTTP/2: expose function to push single resource to modules

Maxim Dounin mdounin at mdounin.ru
Thu Feb 8 19:00:27 UTC 2018


Hello!

On Thu, Feb 08, 2018 at 04:52:59PM +0000, Alessandro Ghedini wrote:

> # HG changeset patch
> # User Alessandro Ghedini <alessandro at ghedini.me>
> # Date 1518108716 0
> #      Thu Feb 08 16:51:56 2018 +0000
> # Branch expose-push
> # Node ID 1bb98b06d5536dfc80a407aabd8d06f9309f8df6
> # Parent  a49af443656f2b65ca5de9d8cad5594f44e18ff7
> HTTP/2: expose function to push single resource to modules.
> 
> This makes it possible for 3rd party modules to implement alternative
> methods for deciding which resources to push to clients on a per-request
> basis (e.g. by parsing HTML from the response body, by using a custom
> Link header parser, ...).
> 
> No functional changes.

Not sure this is a good idea.

You may consider exposing a variable to be used in http2_push 
instead.

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx-devel mailing list