KestrunResponse.WriteStreamResponse method
Writes a stream response with the specified stream, status code, and content type.
public void WriteStreamResponse(Stream stream, int statusCode = 200,
string contentType = "application/octet-stream")
| parameter | description |
|---|---|
| stream | The stream to send in the response. |
| statusCode | The HTTP status code for the response. |
| contentType | The MIME type of the response content. |
See Also
- class KestrunResponse
- namespace Kestrun.Models