Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobsynth
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-blobsynth
Commits
929ad675
Commit
929ad675
authored
Sep 22, 2017
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some polishing
parent
3607151b
Pipeline
#286
skipped
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
23 deletions
+17
-23
CHANGES.rst
CHANGES.rst
+2
-16
README.rst
README.rst
+3
-1
configure.ac
configure.ac
+1
-1
test01.vtc
src/tests/test01.vtc
+4
-1
vmod_blobsynth.vcc
src/vmod_blobsynth.vcc
+7
-4
No files found.
CHANGES.rst
View file @
929ad675
This is a running log of changes to libvmod-blobsynth.
libvmod-blobsynth 0.
2 (unreleased
)
libvmod-blobsynth 0.
1 (2017-09-22
)
--------------------------------
* The most recent release entry is at the top.
libvmod-blobsynth 0.1 (1970-01-01)
--------------------------------
* Add list items with changes done.
* Issues fixed could also be list entries.
If you need to, a paragraph or two of explanation for any complicated changes
is appreciated.
Make sure to mention any changing breaking user-visible interfaces. (function
names, type of arguments, order of arguments)
Initial release
README.rst
View file @
929ad675
...
...
@@ -10,7 +10,9 @@ import blobsynth;
DESCRIPTION
===========
Quick hack to use blobs for synthetic responses.
Trivial vmod to use blobs for synthetic responses, intended only as a
transitional solution until support for generating synthetic responses
is generalised in Varnish Cache.
Example::
...
...
configure.ac
View file @
929ad675
AC_PREREQ([2.68])
AC_INIT([libvmod-blobsynth], [0.1], [], [vmod-blobsynth])
AC_COPYRIGHT([
Copyright (c) 2011-2016 Varnish Software AS
])
AC_COPYRIGHT([
Public Domain
])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR(src/vmod_blobsynth.vcc)
...
...
src/tests/test01.vtc
View file @
929ad675
...
...
@@ -15,6 +15,7 @@ varnish v1 -vcl+backend {
}
sub vcl_recv {
# wrong, triggers error
blobsynth.synthetic(gif.get());
return(synth(200));
}
...
...
@@ -27,12 +28,14 @@ varnish v1 -vcl+backend {
} -start
logexpect l1 -v v1 -g raw -d 1 {
expect 0 0 CLI {^Rd vcl.load}
expect 0 0 CLI {^Rd vcl.load}
expect 1001 * VCL_Error {^blobsynth.synthetic.. only valid in}
} -start
client c1 {
txreq -url "/"
rxresp
expect resp.http.Content-Length == 43
}
client c1 -run
...
...
src/vmod_blobsynth.vcc
View file @
929ad675
#
#
Copyright YOU (c) 1900
.
#
This is free and unencumbered software released into the public domain
.
#
#
(vmodtool requires this format.)
#
See the LICENSE file contained in the source repository / distribution
#
$Module blobsynth 3 Blobsynth VMOD
...
...
@@ -11,6 +11,9 @@ DESCRIPTION
$Function VOID synthetic(BLOB blob)
Create a synthetic response from *blob*.
Create a synthetic response from *blob*, equivalent to the
``synthetic()`` built-in function except for the argument type.
Has no effect outside ``vcl_synth`` and ``vcl_backend_error``.
Needs to be called from ``vcl_synth`` or
``vcl_backend_error``. Otherwise, the function has no effect other
than logging a ``VCL_Error`` message to VSL.
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