⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.96
Server IP:
147.93.97.220
Server:
Linux srv843233 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
varnish
/
html
/
reference
/
View File Name :
vmod_h2.html
<!DOCTYPE html> <html lang="en" data-content_root="../"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" /> <title>VMOD h2 - Module to control the built-in HTTP2 transport — Varnish version 7.5.0 documentation</title> <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" /> <link rel="stylesheet" type="text/css" href="../_static/classic.css?v=e2714048" /> <script src="../_static/documentation_options.js?v=8214db13"></script> <script src="../_static/doctools.js?v=888ff710"></script> <script src="../_static/sphinx_highlight.js?v=dc90522c"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="VMOD proxy - Varnish Module to extract TLV attributes from PROXYv2" href="vmod_proxy.html" /> <link rel="prev" title="VMOD directors - Varnish Directors Module" href="vmod_directors.html" /> </head><body> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="vmod_proxy.html" title="VMOD proxy - Varnish Module to extract TLV attributes from PROXYv2" accesskey="N">next</a> |</li> <li class="right" > <a href="vmod_directors.html" title="VMOD directors - Varnish Directors Module" accesskey="P">previous</a> |</li> <li class="nav-item nav-item-0"><a href="../index.html">Varnish version 7.5.0 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">The Varnish Reference Manual</a> »</li> <li class="nav-item nav-item-this"><a href="">VMOD h2 - Module to control the built-in HTTP2 transport</a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <section id="vmod-h2-module-to-control-the-built-in-http2-transport"> <span id="vmod-h2-3"></span><h1>VMOD h2 - Module to control the built-in HTTP2 transport<a class="headerlink" href="#vmod-h2-module-to-control-the-built-in-http2-transport" title="Link to this heading">¶</a></h1> <section id="synopsis"> <h2>SYNOPSIS<a class="headerlink" href="#synopsis" title="Link to this heading">¶</a></h2> <pre class="literal-block">import h2 [as name] [from "path"] <a class="reference internal" href="#h2-is"><span class="std std-ref">BOOL is()</span></a> <a class="reference internal" href="#h2-rapid-reset"><span class="std std-ref">DURATION rapid_reset([DURATION threshold])</span></a> <a class="reference internal" href="#h2-rapid-reset-limit"><span class="std std-ref">INT rapid_reset_limit([INT number])</span></a> <a class="reference internal" href="#h2-rapid-reset-period"><span class="std std-ref">DURATION rapid_reset_period([DURATION duration])</span></a> <a class="reference internal" href="#h2-rapid-reset-budget"><span class="std std-ref">REAL rapid_reset_budget()</span></a></pre> </section> <section id="description"> <h2>DESCRIPTION<a class="headerlink" href="#description" title="Link to this heading">¶</a></h2> <p>This VMOD contains functions to control the HTTP2 transport built into Varnish-Cache.</p> <section id="bool-is"> <span id="h2-is"></span><h3>BOOL is()<a class="headerlink" href="#bool-is" title="Link to this heading">¶</a></h3> <p>Restricted to: <code class="docutils literal notranslate"><span class="pre">client</span></code>.</p> <p>Returns true when called on a session handled by the built-in HTTP2 transport.</p> </section> <section id="duration-rapid-reset-duration-threshold"> <span id="h2-rapid-reset"></span><h3>DURATION rapid_reset([DURATION threshold])<a class="headerlink" href="#duration-rapid-reset-duration-threshold" title="Link to this heading">¶</a></h3> <p>Restricted to: <code class="docutils literal notranslate"><span class="pre">client</span></code>.</p> <p>Get and optionally set the <code class="docutils literal notranslate"><span class="pre">h2_rapid_reset</span></code> parameter (See <a class="reference internal" href="varnishd.html#varnishd-1"><span class="std std-ref">varnishd</span></a>) for this HTTP2 session only.</p> <p>Returns -1 when used outside the HTTP2 transport. Otherwise returns the previous value.</p> <p>If the call leads to a change in the rate limit parameters, the current budget as retuned by <a class="reference internal" href="#h2-rapid-reset-budget">h2.rapid_reset_budget()</a> is reset.</p> </section> <section id="int-rapid-reset-limit-int-number"> <span id="h2-rapid-reset-limit"></span><h3>INT rapid_reset_limit([INT number])<a class="headerlink" href="#int-rapid-reset-limit-int-number" title="Link to this heading">¶</a></h3> <p>Restricted to: <code class="docutils literal notranslate"><span class="pre">client</span></code>.</p> <p>Get and optionally set the <code class="docutils literal notranslate"><span class="pre">h2_rapid_reset_limit</span></code> parameter (See <a class="reference internal" href="varnishd.html#varnishd-1"><span class="std std-ref">varnishd</span></a>) for this HTTP2 session only.</p> <p>Returns -1 when used outside the HTTP2 transport. Otherwise returns the previous value.</p> <p>If the call leads to a change in the rate limit parameters, the current budget as retuned by <a class="reference internal" href="#h2-rapid-reset-budget">h2.rapid_reset_budget()</a> is reset.</p> </section> <section id="duration-rapid-reset-period-duration-duration"> <span id="h2-rapid-reset-period"></span><h3>DURATION rapid_reset_period([DURATION duration])<a class="headerlink" href="#duration-rapid-reset-period-duration-duration" title="Link to this heading">¶</a></h3> <p>Restricted to: <code class="docutils literal notranslate"><span class="pre">client</span></code>.</p> <p>Get and optionally set the <code class="docutils literal notranslate"><span class="pre">h2_rapid_reset_period</span></code> parameter (See <a class="reference internal" href="varnishd.html#varnishd-1"><span class="std std-ref">varnishd</span></a>) for this HTTP2 session only.</p> <p>Returns -1 when used outside the HTTP2 transport. Otherwise returns the previous value.</p> <p>If the call leads to a change in the rate limit parameters, the current budget as retuned by <a class="reference internal" href="#h2-rapid-reset-budget">h2.rapid_reset_budget()</a> is reset.</p> </section> <section id="real-rapid-reset-budget"> <span id="h2-rapid-reset-budget"></span><h3>REAL rapid_reset_budget()<a class="headerlink" href="#real-rapid-reset-budget" title="Link to this heading">¶</a></h3> <p>Restricted to: <code class="docutils literal notranslate"><span class="pre">client</span></code>.</p> <p>Return how many RST frames classified as “rapid” the client is still allowed to send before the session is going to be closed.</p> </section> </section> <section id="see-also"> <h2>SEE ALSO<a class="headerlink" href="#see-also" title="Link to this heading">¶</a></h2> <ul class="simple"> <li><p><a class="reference internal" href="varnishd.html#varnishd-1"><span class="std std-ref">varnishd</span></a></p></li> <li><p><a class="reference internal" href="vsl.html#vsl-7"><span class="std std-ref">VSL</span></a></p></li> </ul> </section> <section id="copyright"> <h2>COPYRIGHT<a class="headerlink" href="#copyright" title="Link to this heading">¶</a></h2> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>Copyright 2023 UPLEX - Nils Goroll Systemoptimierung All rights reserved. Author: Nils Goroll <nils.goroll@uplex.de> SPDX-License-Identifier: BSD-2-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. </pre></div> </div> </section> </section> <div class="clearer"></div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <div> <h3><a href="../index.html">Table of Contents</a></h3> <ul> <li><a class="reference internal" href="#">VMOD h2 - Module to control the built-in HTTP2 transport</a></li> </ul> </div> <div> <h4>Previous topic</h4> <p class="topless"><a href="vmod_directors.html" title="previous chapter">VMOD directors - Varnish Directors Module</a></p> </div> <div> <h4>Next topic</h4> <p class="topless"><a href="vmod_proxy.html" title="next chapter">VMOD proxy - Varnish Module to extract TLV attributes from PROXYv2</a></p> </div> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/reference/vmod_h2.rst.txt" rel="nofollow">Show Source</a></li> </ul> </div> <div id="searchbox" style="display: none" role="search"> <h3 id="searchlabel">Quick search</h3> <div class="searchformwrapper"> <form class="search" action="../search.html" method="get"> <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/> <input type="submit" value="Go" /> </form> </div> </div> <script>document.getElementById('searchbox').style.display = "block"</script> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="vmod_proxy.html" title="VMOD proxy - Varnish Module to extract TLV attributes from PROXYv2" >next</a> |</li> <li class="right" > <a href="vmod_directors.html" title="VMOD directors - Varnish Directors Module" >previous</a> |</li> <li class="nav-item nav-item-0"><a href="../index.html">Varnish version 7.5.0 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="index.html" >The Varnish Reference Manual</a> »</li> <li class="nav-item nav-item-this"><a href="">VMOD h2 - Module to control the built-in HTTP2 transport</a></li> </ul> </div> <div class="footer" role="contentinfo"> © Copyright 2010-2014, Varnish Software AS. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6. </div> </body> </html>