Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-dispatch
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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-dispatch
Commits
7936a2ad
Commit
7936a2ad
authored
Mar 16, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc polish -- simplify an example.
parent
6c711bfa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
README.rst
README.rst
+2
-4
vmod_dispatch.vcc
src/vmod_dispatch.vcc
+2
-4
No files found.
README.rst
View file @
7936a2ad
...
...
@@ -242,8 +242,7 @@ Example::
# If the backend response has header Type with an an integer
# value, call the subroutine assigned to that integer.
if (beresp.http.Type ~ "^\d+$") {
subs.call(std.integer(
regsub(beresp.http.Type, "(\d+)", "\1")));
subs.call(std.integer(beresp.http.Type));
}
}
...
...
@@ -264,8 +263,7 @@ Example::
if (beresp.http.Type ~ "^\d+$") {
std.log("Called in subroutine "
+ subs.string(std.integer(
regsub(beresp.http.Type, "(\d+)", "\1"))));
+ subs.string(std.integer(beresp.http.Type)));
}
}
...
...
src/vmod_dispatch.vcc
View file @
7936a2ad
...
...
@@ -216,8 +216,7 @@ Example::
# If the backend response has header Type with an an integer
# value, call the subroutine assigned to that integer.
if (beresp.http.Type ~ "^\d+$") {
subs.call(std.integer(
regsub(beresp.http.Type, "(\d+)", "\1")));
subs.call(std.integer(beresp.http.Type));
}
}
...
...
@@ -235,8 +234,7 @@ Example::
if (beresp.http.Type ~ "^\d+$") {
std.log("Called in subroutine "
+ subs.string(std.integer(
regsub(beresp.http.Type, "(\d+)", "\1"))));
+ subs.string(std.integer(beresp.http.Type)));
}
}
...
...
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