KestrunResponse.WriteCsvResponse method
Writes a CSV response with the specified input object, status code, content type, and optional CsvConfiguration.
public void WriteCsvResponse(object? inputObject, int statusCode = 200, string? contentType = null,
CsvConfiguration? config = null)
| parameter | description |
|---|---|
| inputObject | The object to be converted to CSV. |
| statusCode | The HTTP status code for the response. |
| contentType | The MIME type of the response content. |
| config | An optional CsvConfiguration to customize CSV output. |
See Also
- class KestrunResponse
- namespace Kestrun.Models