public sealed class HttpRoute.Types.RouteRule : IMessage<HttpRoute.Types.RouteRule>, IEquatable<HttpRoute.Types.RouteRule>, IDeepCloneable<HttpRoute.Types.RouteRule>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class HttpRoute.Types.RouteRule.
Specifies how to match traffic and how to route traffic when traffic is
matched.
public RepeatedField<HttpRoute.Types.RouteMatch> Matches { get; }
A list of matches define conditions used for matching the rule against
incoming HTTP requests. Each match is independent, i.e. this rule will be
matched if ANY one of the matches is satisfied.
If no matches field is specified, this rule will unconditionally match
traffic.
If a default rule is desired to be configured, add a rule with no matches
specified to the end of the rules list.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This documentation covers the `HttpRoute.Types.RouteRule` class within the Network Services v1 API, detailing its use in matching and routing traffic."],["The `RouteRule` class inherits from `object` and implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The class includes constructors for creating `RouteRule` objects, either default or by copying an existing `RouteRule` object."],["Key properties of `RouteRule` include `Action`, which defines how matched traffic is routed, and `Matches`, which specifies the conditions under which a rule is triggered."],["The `Matches` property allows for multiple conditions to be specified, where fulfilling any one of them will result in a matched rule."]]],[]]