Class HttpResponseOptionsBuilder
Non-generic builder used for Result (no value).
public sealed class HttpResponseOptionsBuilder
- Inheritance
-
HttpResponseOptionsBuilder
- Inherited Members
- Extension Methods
Methods
HonorPrefer()
Honors Prefer; always emits Vary: Prefer.
public HttpResponseOptionsBuilder HonorPrefer()
Returns
Vary(params string[])
Appends headers to the response Vary header.
public HttpResponseOptionsBuilder Vary(params string[] headers)
Parameters
headersstring[]
Returns
WithErrorMapping(Func<Error, int>)
Per-call override mapper for failure responses.
public HttpResponseOptionsBuilder WithErrorMapping(Func<Error, int> mapper)
Parameters
Returns
WithErrorMapping<TError>(int)
Per-call override for a single error type.
public HttpResponseOptionsBuilder WithErrorMapping<TError>(int statusCode) where TError : Error
Parameters
statusCodeint
Returns
Type Parameters
TError