Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-file
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-file
Commits
c690f5f6
Commit
c690f5f6
authored
Sep 22, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for .synth() and .error().
parent
46dc6d53
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
8 deletions
+30
-8
README.rst
README.rst
+15
-4
vmod_file.vcc
src/vmod_file.vcc
+15
-4
No files found.
README.rst
View file @
c690f5f6
...
...
@@ -261,9 +261,15 @@ VOID xreader.synth()
--------------------
Generate a synthetic client response body from the file contents. This
method may only be called in ``vcl_synth``.
method may only be called in ``vcl_synth``. Invokes VCL failure if the
most recent update check encountered an error, or if invoked in any
other VCL subroutine besides ``vcl_synth``.
XXX ...
Example::
sub vcl_synth {
synth_body.synth();
}
.. _xreader.error():
...
...
@@ -271,9 +277,14 @@ BOOL xreader.error()
--------------------
Return true if and only if an error condition was determined the last
time the file was checked.
time the file was checked. This is a way to avoid VCL failure in error
conditions.
XXX ...
Example::
if (rdr.error()) {
call do_file_error_handling;
}
.. _xreader.errmsg():
...
...
src/vmod_file.vcc
View file @
c690f5f6
...
...
@@ -241,16 +241,27 @@ message.
$Method VOID .synth()
Generate a synthetic client response body from the file contents. This
method may only be called in ``vcl_synth``.
method may only be called in ``vcl_synth``. Invokes VCL failure if the
most recent update check encountered an error, or if invoked in any
other VCL subroutine besides ``vcl_synth``.
XXX ...
Example::
sub vcl_synth {
synth_body.synth();
}
$Method BOOL .error()
Return true if and only if an error condition was determined the last
time the file was checked.
time the file was checked. This is a way to avoid VCL failure in error
conditions.
XXX ...
Example::
if (rdr.error()) {
call do_file_error_handling;
}
$Method STRING .errmsg()
...
...
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