[master] 3c3dc16 extract from git diff -r varnish-4.1.3 ./lib/libvcc/generate.py

Nils Goroll nils.goroll at uplex.de
Wed Sep 14 15:03:15 CEST 2016


commit 3c3dc16b1118850bc4194326ce1c87a2f3575ccb
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Sep 14 15:02:04 2016 +0200

    extract from git diff -r varnish-4.1.3 ./lib/libvcc/generate.py

diff --git a/doc/sphinx/whats-new/changes-5.0.rst b/doc/sphinx/whats-new/changes-5.0.rst
index dfd611d..13f99ea 100644
--- a/doc/sphinx/whats-new/changes-5.0.rst
+++ b/doc/sphinx/whats-new/changes-5.0.rst
@@ -122,13 +122,6 @@ lookups due to lock contention. Previously this was the same as
 ``ban_lurker_sleep``.
 
 
-Access to more object properties from vcl_deliver
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-``obj.ttl``, ``obj.age``, ``obj.grace`` and ``obj.keep`` are now
-available in ``vcl_deliver{}`` read-only.
-
-
 Request Body sent always / "cacheable POST"
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
diff --git a/doc/sphinx/whats-new/upgrading-5.0.rst b/doc/sphinx/whats-new/upgrading-5.0.rst
index 7cc40a4..464b07c 100644
--- a/doc/sphinx/whats-new/upgrading-5.0.rst
+++ b/doc/sphinx/whats-new/upgrading-5.0.rst
@@ -7,6 +7,51 @@ Upgrading to Varnish 5.0
 Changes to VCL
 ==============
 
+vcl_recv {}
+~~~~~~~~~~~
+
+* added ``return(vcl(label))`` to switch to the vcl labeled `label`
+
+vcl_hit {}
+~~~~~~~~~~
+
+* replace ``return(fetch)`` with ``return(miss)``
+
+vcl_backend_* {}
+~~~~~~~~~~~~~~~~
+
+* added read access to ``remote.ip``, ``client.ip``, ``local.ip`` and
+  ``server.ip``
+
+vcl_backend_fetch {}
+~~~~~~~~~~~~~~~~~~~~
+
+* added write access to ``bereq.body``, the request body
+
+* We now send request bodies by default (see :ref:_whatsnew_changes_5.0).
+  To keep the previous behaviour, add the following code before any
+  ``return()``::
+
+	if (bereq.method == "GET") {
+	    unset bereq.body;
+	}
+
+
+vcl_backend_error {}
+~~~~~~~~~~~~~~~~~~~~
+
+* added write access to ``beresp.body``, the response body
+
+vcl_deliver {}
+~~~~~~~~~~~~~~
+
+* added read access to ``obj.ttl``, ``obj.age``, ``obj.grace`` and
+  ``obj.keep``
+
+vcl_synth {}
+~~~~~~~~~~~~
+
+* added write access to ``resp.body``, the response body
 
 Management interface
 ====================



More information about the varnish-commit mailing list