StatusCodeOptions.LocationFormat property
Gets or sets the location format string for the status code response. If set, the middleware will issue a redirect to the specified location. The format string should contain a single placeholder for the status code. If both LocationFormat and PathFormat are set, LocationFormat takes precedence. If neither is set, no redirect will be issued.
public string? LocationFormat { get; set; }
See Also
- class StatusCodeOptions
- namespace Kestrun.Hosting.Options