Updated Stubbing and Request Matching (markdown)

Stef Heyenrath
2018-07-02 10:14:44 +02:00
parent b0c02abbb9
commit 7525480198

@@ -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.[<n>]` - URL path segment (zero indexed) e.g. request.PathSegments.[2]
* `request.AbsolutePathSegments.[<n>]` - URL absolute path segments (zero indexed) e.g. request.AbsolutePathSegments.[2]
* `request.query.<key>`- First value of a query parameter e.g. request.query.search
* `request.query.<key>.[<n>]`- nth value of a query parameter (zero indexed) e.g. request.query.search.[5]
* `request.headers.<key>` - First value of a request header e.g. request.headers.X-Request-Id