mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-21 08:59:50 +01:00
Updated Stubbing and Request Matching (markdown)
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user