Route criteria for a header that must be present on the incoming request.
Assembly: Yarp.ReverseProxy.dll
public sealed class RouteHeader : object
Properties
|
Improve this Doc
View Source
Specifies whether header value comparisons should ignore case.
When true
, is used.
When false
, is used.
Defaults to false
.
Declaration
public bool IsCaseSensitive { get; set; }
Property Value
|
Improve this Doc
View Source
Specifies how header values should be compared (e.g. exact matches Vs. by prefix).
Defaults to ExactHeader.
Declaration
public HeaderMatchMode Mode { get; set; }
Property Value
|
Improve this Doc
View Source
Name of the header to look for.
This field is case insensitive and required.
Declaration
public string Name { get; set; }
Property Value
|
Improve this Doc
View Source
A collection of acceptable header values used during routing. Only one value must match.
The list must not be empty unless using Exists or NotExists.
Declaration
public IReadOnlyList<string>? Values { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
public bool Equals(RouteHeader other)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public override int GetHashCode()
Returns
Implements