KestrunResponse constructor
Represents an HTTP response in the Kestrun framework, providing methods to write various content types and manage headers, cookies, and status codes.
public KestrunResponse(KestrunRequest request, int bodyAsyncThreshold = 8192)
| parameter | description |
|---|---|
| request | The associated KestrunRequest for this response. |
| bodyAsyncThreshold | The threshold in bytes for using async body write operations. Defaults to 8192. |
Remarks
Initializes a new instance of the KestrunResponse class with the specified request and optional body async threshold.
See Also
- class KestrunRequest
- class KestrunResponse
- namespace Kestrun.Models