KestrunResponse.WriteHtmlResponse method
Renders the given HTML string with placeholders and writes it as a response.
public void WriteHtmlResponse(string template, IReadOnlyDictionary<string, object?>? vars,
int statusCode = 200)
parameter | description |
---|---|
template | The HTML template string containing placeholders. |
vars | A dictionary of variables to replace in the template. |
statusCode | The HTTP status code for the response. |
See Also
- class KestrunResponse
- namespace Kestrun.Models