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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eHttpRoute.Types.RouteRule\u003c/code\u003e class within the Network Services v1 API, detailing its use in matching and routing traffic.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRouteRule\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors for creating \u003ccode\u003eRouteRule\u003c/code\u003e objects, either default or by copying an existing \u003ccode\u003eRouteRule\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eRouteRule\u003c/code\u003e include \u003ccode\u003eAction\u003c/code\u003e, which defines how matched traffic is routed, and \u003ccode\u003eMatches\u003c/code\u003e, which specifies the conditions under which a rule is triggered.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMatches\u003c/code\u003e property allows for multiple conditions to be specified, where fulfilling any one of them will result in a matched rule.\u003c/p\u003e\n"]]],[],null,[]]