Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-zipflow
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
libvmod-zipflow
Commits
4c416624
Unverified
Commit
4c416624
authored
Jul 25, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new subrequest related functions
parent
e2c08edc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
vmod_zipflow.c
src/vmod_zipflow.c
+27
-0
vmod_zipflow.vcc
src/vmod_zipflow.vcc
+20
-0
No files found.
src/vmod_zipflow.c
View file @
4c416624
...
...
@@ -108,6 +108,33 @@ get_zipflow_task(VRT_CTX)
* VCL interface
*/
VCL_VOID
vmod_subreq
(
VRT_CTX
,
VCL_STRING
url
)
{
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
// XXX TODO
(
void
)
url
;
}
VCL_BOOL
vmod_is_subreq
(
VRT_CTX
)
{
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
// XXX TODO
return
(
1
);
}
VCL_VOID
vmod_bundle
(
VRT_CTX
,
VCL_BOOL
toggle
)
{
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
// XXX TODO
(
void
)
toggle
;
}
VCL_VOID
vmod_set_level
(
VRT_CTX
,
VCL_INT
level
)
{
...
...
src/vmod_zipflow.vcc
View file @
4c416624
...
...
@@ -37,6 +37,26 @@ Example
set resp.filters += " zipflow";
}
$Function VOID subreq(STRING url)
Issue a sub requets to *url* when the VDP runs, similar to ESI
processing.
This function can be called any number of times. The sub request can
be identified using `zipflow.is_subreq()`_. In the sub request,
`zipflow.set_level()`_ and `zipflow.meta()`_ should be used to control
how zipflow handles the body.
$Function BOOL is_subreq()
True if the current request is a zipflow sub request.
$Function VOID bundle(BOOL)
By default, any content handled by zipflow, be it in the parent or sub
reuqest, is bundled in the resulting ZIP file. This function can be
used to diable or re-enable bundling of the request's body.
$Function VOID set_level(INT level)
$Restrict vcl_init client backend
...
...
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