KestrunResponse.WriteFileResponse method
Writes a file response with the specified file path, content type, and HTTP status code.
public void WriteFileResponse(string? filePath, string? contentType, int statusCode = 200)
| parameter | description |
|---|---|
| filePath | The path to the file to be sent in the response. |
| contentType | The MIME type of the file content. |
| statusCode | The HTTP status code for the response. |
See Also
- class KestrunResponse
- namespace Kestrun.Models