Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
84e98d8d
Commit
84e98d8d
authored
Mar 31, 2017
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve documentation for std.collect
parent
99efebb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
vmod.vcc
lib/libvmod_std/vmod.vcc
+6
-5
No files found.
lib/libvmod_std/vmod.vcc
View file @
84e98d8d
...
...
@@ -110,16 +110,17 @@ Example
$Function VOID collect(HEADER hdr, STRING sep=", ")
Description
Collapses multiple *hdr* headers into one long header.
The header values are joined with a comma (",") unless a
different separator is specified.
Collapses multiple *hdr* headers into one long header. The
default separator *sep* is the standard comma separator to
use when collapsing headers, with an additional whitespace
for pretty printing.
Care should be taken when collapsing headers. In particular
collapsing Set-Cookie will lead to unexpected results on the
browser side.
Examples
std.collect(req.http.accept);
std.collect(req.http.cookie, "; ");
|
std.collect(req.http.accept);
|
std.collect(req.http.cookie, "; ");
$Function DURATION duration(STRING s, DURATION fallback)
...
...
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