From e68c2e009cdd917a88720a02ffbfa09615559593 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Thu, 30 Jan 2020 17:12:16 +0100 Subject: [PATCH] Updated Response Templating (markdown) --- Response-Templating.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Response-Templating.md b/Response-Templating.md index e52ab4e..c05baa8 100644 --- a/Response-Templating.md +++ b/Response-Templating.md @@ -45,6 +45,11 @@ Mapping Json Example: The model of the request is supplied to the header and body templates. The following request attributes are available: * `request.url` - URL path and query +* `request.method` - The HTTP method such as GET or POST. +* `request.protocol` - The scheme such as http or https. +* `request.host` - The name of the host in the URL. +* `request.origin` - The base URL of the request which is equivalent to `{Protocol}://{Host}:{Port}`. + * `request.absoluteurl` - URL path and query (absolute) * `request.path` - URL path * `request.absolutepath` - URL path (absolute)