Skip to content

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 ​

NameDescription
contextThe HttpContext object with an HttpRequest containing the CBOR data.

Returns ​

The deserialized object of type T.