Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvfp-brotli
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvfp-brotli
Commits
dc6663a8
Unverified
Commit
dc6663a8
authored
Jun 13, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use $Restrict
parent
cff18a7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
22 deletions
+12
-22
README.rst
README.rst
+10
-13
vfp_brotli.c
src/vfp_brotli.c
+1
-5
vfp_brotli.vcc
src/vfp_brotli.vcc
+1
-4
No files found.
README.rst
View file @
dc6663a8
..
.. NB: This file is machine generated, DO NOT EDIT!
..
.. Edit
vmod
.vcc and run make instead
.. Edit
./vfp_brotli
.vcc and run make instead
..
.. role:: ref(emphasis)
===========
VMOD
brotli
vmod_
brotli
===========
--------------------------------------------------
...
...
@@ -198,7 +198,7 @@ Note that (unlike gzip) brotli compression does not work together with
Edge Side Includes (ESI). See `LIMITATIONS`_ below for a discussion of
this issue, and of possible solutions with VCL.
.. _
vmod_brotli.encoder
:
.. _
brotli.encoder()
:
new xencoder = brotli.encoder(STRING name, BYTES buffer, INT quality, BOOL large_win, INT lgwin, ENUM mode)
-----------------------------------------------------------------------------------------------------------
...
...
@@ -284,7 +284,7 @@ Example::
}
}
.. _
vmod_brotli.encoder.create_stats
:
.. _
xencoder.create_stats()
:
VOID xencoder.create_stats()
----------------------------
...
...
@@ -294,10 +294,7 @@ the custom compression filter. These are the same as the counters
created for the standard ``"br"`` filter. See `STATISTICS`_ below for
details.
The ``.create_stats()`` method MAY NOT be called in any VCL subroutine
besides ``vcl_init``. If it is called in another subroutine, then VCL
failure is invoked -- ordinarily, the request fails with a "503 VCL
failed" response.
Restricted to: ``vcl_init``.
Example::
...
...
@@ -309,7 +306,7 @@ Example::
mybr.create_stats();
}
.. _
vmod_brotli.decoder
:
.. _
brotli.decoder()
:
new xdecoder = brotli.decoder(STRING name, BYTES buffer, BOOL large_win)
------------------------------------------------------------------------
...
...
@@ -359,7 +356,7 @@ Example::
}
}
.. _
vmod_brotli.decoder.create_stats
:
.. _
xdecoder.create_stats()
:
VOID xdecoder.create_stats()
----------------------------
...
...
@@ -371,7 +368,7 @@ for details.
As with ``encoder.create_stats()``, this method MAY NOT be called in
any VCL subroutine besides ``vcl_init``, otherwise VCL failure is invoked.
.. _
vmod_brotli.encoder_version
:
.. _
brotli.encoder_version()
:
STRING encoder_version()
------------------------
...
...
@@ -382,7 +379,7 @@ Example::
std.log("Using brotli encoder version: " + brotli.encoder_version());
.. _
vmod_brotli.decoder_version
:
.. _
brotli.decoder_version()
:
STRING decoder_version()
------------------------
...
...
@@ -393,7 +390,7 @@ Example::
std.log("Using brotli decoder version: " + brotli.decoder_version());
.. _
vmod_brotli.version
:
.. _
brotli.version()
:
STRING version()
----------------
...
...
src/vfp_brotli.c
View file @
dc6663a8
...
...
@@ -753,11 +753,7 @@ create_stats(VRT_CTX, const struct vfp *vfp, const char *vcl_name)
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
AN
(
vcl_name
);
if
((
ctx
->
method
&
VCL_MET_INIT
)
==
0
)
{
VFAIL
(
ctx
,
"%s.create_stats() may only be called in vcl_init"
,
vcl_name
);
return
;
}
assert
(
ctx
->
method
==
VCL_MET_INIT
);
AN
(
vfp
);
CAST_OBJ_NOTNULL
(
vfp_priv
,
TRUST_ME
(
vfp
->
priv1
),
VFP_PRIV_MAGIC
);
...
...
src/vfp_brotli.vcc
View file @
dc6663a8
...
...
@@ -281,10 +281,7 @@ the custom compression filter. These are the same as the counters
created for the standard ``"br"`` filter. See `STATISTICS`_ below for
details.
The ``.create_stats()`` method MAY NOT be called in any VCL subroutine
besides ``vcl_init``. If it is called in another subroutine, then VCL
failure is invoked -- ordinarily, the request fails with a "503 VCL
failed" response.
$Restrict vcl_init
Example::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment