mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-24 09:18:27 +02:00
Updated Stubbing and Request Matching (markdown)
@@ -382,7 +382,7 @@ The model of the request is supplied to the header and body templates. The follo
|
|||||||
* `request.headers.<key>.[<n>]` - nth value of a header (zero indexed) e.g. request.headers.ManyThings.[1]
|
* `request.headers.<key>.[<n>]` - nth value of a header (zero indexed) e.g. request.headers.ManyThings.[1]
|
||||||
* `request.cookies.<key>` - Value of a request cookie e.g. request.cookies.JSESSIONID
|
* `request.cookies.<key>` - Value of a request cookie e.g. request.cookies.JSESSIONID
|
||||||
* `request.body` - Request body text as string
|
* `request.body` - Request body text as string
|
||||||
* `request.bodyAsJson` - Request body as dynamic Json Object
|
* `request.bodyAsJson` - Request body as dynamic Json Object. Note that the request **must** contain the header `Content-Type` with value `application/json`!
|
||||||
|
|
||||||
### Handlebars helpers
|
### Handlebars helpers
|
||||||
All of the standard helpers (template functions) provided by the C# Handlebars implementation plus all of the string helpers are available e.g.
|
All of the standard helpers (template functions) provided by the C# Handlebars implementation plus all of the string helpers are available e.g.
|
||||||
|
|||||||
Reference in New Issue
Block a user