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
0776ac8e
Commit
0776ac8e
authored
Feb 26, 2021
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the .id() method.
parent
8c9b7615
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
README.rst
README.rst
+14
-1
vmod_file.vcc
src/vmod_file.vcc
+14
-1
No files found.
README.rst
View file @
0776ac8e
...
...
@@ -35,6 +35,7 @@ SYNOPSIS
BYTES <obj>.size()
TIME <obj>.mtime()
DURATION <obj>.next_check()
BLOB <obj>.id()
# VMOD version
STRING file.version()
...
...
@@ -457,7 +458,19 @@ Example::
BLOB xreader.id()
-----------------
XXX ...
Returns a unique, opaque identifier for the state of the file as
determined when it was most recently checked. The ID changes if and
only if the file was found to have changed.
Example::
import blob;
set resp.http.ETag = blob.encode(BASE64, blob=rdr.id());
The contents of the BLOB returned by ``.id()`` are intentionally not
documented, and should not be relied on to extract information about
the file.
.. _file.version():
...
...
src/vmod_file.vcc
View file @
0776ac8e
...
...
@@ -31,6 +31,7 @@ SYNOPSIS
BYTES <obj>.size()
TIME <obj>.mtime()
DURATION <obj>.next_check()
BLOB <obj>.id()
# VMOD version
STRING file.version()
...
...
@@ -413,7 +414,19 @@ Example::
$Method BLOB .id()
XXX ...
Returns a unique, opaque identifier for the state of the file as
determined when it was most recently checked. The ID changes if and
only if the file was found to have changed.
Example::
import blob;
set resp.http.ETag = blob.encode(BASE64, blob=rdr.id());
The contents of the BLOB returned by ``.id()`` are intentionally not
documented, and should not be relied on to extract information about
the file.
$Function STRING version()
...
...
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