Appearance
ReadCbor Method
Definition
- Namespace:
JASE.Extensions - Assembly:
JASE.Web.dll
Task<T> ReadCbor(HttpContext context, CancellationToken cancellationToken = null)
csharp
Task<T> ReadCbor(HttpContext context, CancellationToken cancellationToken = null)Deserializes a CBOR-encoded HTTP request body into an object of type T.
Parameters
| Name | Description |
|---|---|
context | The HttpContext object with an HttpRequest containing the CBOR data. |
Returns
The deserialized object of type T.