KestrunResponse.WriteCborResponse method
Writes a CBOR response (binary, efficient, not human-readable).
public void WriteCborResponse(object? inputObject, int statusCode = 200, string? contentType = null)
parameter | description |
---|---|
inputObject | The object to be converted to CBOR. |
statusCode | The HTTP status code for the response. |
contentType | The MIME type of the response content. |
See Also
- class KestrunResponse
- namespace Kestrun.Models