This VMOD contains functions to control the HTTP2 transport built into Varnish-Cache.
BOOL is()
Returns true when called on a session handled by the built-in HTTP2 transport.
Arguments: None
Type: Function
Returns: Bool
Restricted to: client
DURATION rapid_reset([DURATION threshold])
Get and optionally set the h2_rapid_reset
parameter (See
varnishd(1)) for this HTTP2 session only.
Returns -1 when used outside the HTTP2 transport. Otherwise returns the previous value.
If the call leads to a change in the rate limit parameters, the
current budget as retuned by
h2.rapid_reset_budget()
is reset.
Arguments:
threshold
accepts type DURATIONType: Function
Returns: Duration
Restricted to: client
INT rapid_reset_limit([INT number])
Get and optionally set the h2_rapid_reset_limit
parameter (See
varnishd(1)) for this HTTP2 session only.
Returns -1 when used outside the HTTP2 transport. Otherwise returns the previous value.
If the call leads to a change in the rate limit parameters, the
current budget as retuned by
h2.rapid_reset_budget()
is reset.
Arguments:
number
accepts type INTType: Function
Returns: Int
Restricted to: client
DURATION rapid_reset_period([DURATION duration])
Get and optionally set the h2_rapid_reset_period
parameter (See
varnishd(1)) for this HTTP2 session only.
Returns -1 when used outside the HTTP2 transport. Otherwise returns the previous value.
If the call leads to a change in the rate limit parameters, the
current budget as retuned by
h2.rapid_reset_budget()
is reset.
Arguments:
duration
accepts type DURATIONType: Function
Returns: Duration
Restricted to: client
REAL rapid_reset_budget()
Return how many RST frames classified as “rapid” the client is still allowed to send before the session is going to be closed.
Arguments: None
Type: Function
Returns: Real
Restricted to: client