From 9321c8ff0169e88613417e94bc5039689264266d Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Fri, 20 Jul 2018 20:18:05 +0200 Subject: [PATCH] Updated Stubbing and Request Matching (markdown) --- Stubbing-and-Request-Matching.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Stubbing-and-Request-Matching.md b/Stubbing-and-Request-Matching.md index da89dca..7f59b92 100644 --- a/Stubbing-and-Request-Matching.md +++ b/Stubbing-and-Request-Matching.md @@ -381,7 +381,8 @@ The model of the request is supplied to the header and body templates. The follo * `request.headers.[]` - Header with awkward characters e.g. request.headers.[$?blah] * `request.headers..[]` - nth value of a header (zero indexed) e.g. request.headers.ManyThings.[1] * `request.cookies.` - Value of a request cookie e.g. request.cookies.JSESSIONID -* `request.body` - Request body text (avoid for non-text bodies) +* `request.body` - Request body text as string +* `request.bodyAsJson` - Request body as dynamic Json Object ### 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.