KestrunResponse.WriteCsvResponseAsync method
Asynchronously writes a CSV response with the specified input object, status code, content type, and optional configuration tweak.
public Task WriteCsvResponseAsync(object? inputObject, int statusCode = 200,
string? contentType = null, Action<CsvConfiguration>? tweak = 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. |
tweak | An optional action to tweak the CsvConfiguration. |
See Also
- class KestrunResponse
- namespace Kestrun.Models