From 7525480198ea6bd55a547747f926e1b3819dd642 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Mon, 2 Jul 2018 10:14:44 +0200 Subject: [PATCH] Updated Stubbing and Request Matching (markdown) --- Stubbing-and-Request-Matching.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Stubbing-and-Request-Matching.md b/Stubbing-and-Request-Matching.md index 18560a8..b8add75 100644 --- a/Stubbing-and-Request-Matching.md +++ b/Stubbing-and-Request-Matching.md @@ -370,8 +370,11 @@ server 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.absoluteurl` - URL path and query (absolute) * `request.path` - URL path +* `request.absolutepath` - URL path (absolute) * `request.PathSegments.[]` - URL path segment (zero indexed) e.g. request.PathSegments.[2] +* `request.AbsolutePathSegments.[]` - URL absolute path segments (zero indexed) e.g. request.AbsolutePathSegments.[2] * `request.query.`- First value of a query parameter e.g. request.query.search * `request.query..[]`- nth value of a query parameter (zero indexed) e.g. request.query.search.[5] * `request.headers.` - First value of a request header e.g. request.headers.X-Request-Id