mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-30 06:12:18 +02:00
Updated Response Templating (markdown)
@@ -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:
|
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.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.absoluteurl` - URL path and query (absolute)
|
||||||
* `request.path` - URL path
|
* `request.path` - URL path
|
||||||
* `request.absolutepath` - URL path (absolute)
|
* `request.absolutepath` - URL path (absolute)
|
||||||
|
|||||||
Reference in New Issue
Block a user