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