playwright/docs/src/api/csharp.md

17 lines
482 B
Markdown
Raw Normal View History

## method: Request.getPayloadAsJson
* langs: csharp
- returns: <[JsonDocument]>
Returns a [JsonDocument] representation of [`method: Request.postDataBuffer`].
### option: Request.getPayloadAsJson.serializerOptions
- `documentOptions` <[null]|[JsonDocumentOptions]>
The options that control custom behaviour when parsing the JSON.
## method: Response.statusCode
* langs: csharp
- returns: <[System.Net.HttpStatusCode]>
Gets the [System.Net.HttpStatusCode] code of the response.