From 7adf907fba8149717f6d9ab46204f5f4a503e9ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Thu, 13 May 2021 15:14:35 -0300 Subject: [PATCH] docs(dotnet): rename getPayloadAsJson to PostDataJsonAsync (#6533) --- docs/src/api/csharp.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/src/api/csharp.md b/docs/src/api/csharp.md index 0c29f740a0..0a0b9e7c8f 100644 --- a/docs/src/api/csharp.md +++ b/docs/src/api/csharp.md @@ -1,13 +1,17 @@ -## method: Request.getPayloadAsJson +## method: Request.PostDataJSON * langs: csharp - returns: <[JsonDocument]> -Returns a [JsonDocument] representation of [`method: Request.postDataBuffer`]. +Returns parsed request's body for `form-urlencoded` and JSON as a fallback if any. -### option: Request.getPayloadAsJson.serializerOptions +When the response is `application/x-www-form-urlencoded` then a key/value object of the values will be returned. +Otherwise it will be parsed as JSON. + +### param: Request.PostDataJSON.serializerOptions +* langs: csharp - `documentOptions` <[null]|[JsonDocumentOptions]> -The options that control custom behaviour when parsing the JSON. +Optional Json options that control custom behaviour when parsing the JSON. ## method: Response.statusCode * langs: csharp