KestrunResponse.WriteObject record
Represents a simple object for writing responses with a value and status code.
public record WriteObject
Public Members
| name | description |
|---|---|
| WriteObject(…) | Represents a simple object for writing responses with a value and status code. |
| Error { get; set; } | An optional error code to include in the response. |
| Status { get; set; } | The HTTP status code for the response. |
| Value { get; set; } | The value to be written in the response. |
See Also
- class KestrunResponse
- namespace Kestrun.Models