public sealed class TlsRoute.Types.RouteMatch : IMessage<TlsRoute.Types.RouteMatch>, IEquatable<TlsRoute.Types.RouteMatch>, IDeepCloneable<TlsRoute.Types.RouteMatch>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class TlsRoute.Types.RouteMatch.
RouteMatch defines the predicate used to match requests to a given action.
Multiple match types are "AND"ed for evaluation.
Optional. ALPN (Application-Layer Protocol Negotiation) to match against.
Examples: "http/1.1", "h2".
At least one of sni_host and alpn is required.
Up to 5 alpns across all matches can be set.
Optional. SNI (server name indicator) to match against.
SNI will be matched against all wildcard domains, i.e. www.example.com
will be first matched against www.example.com, then *.example.com,
then *.com.
Partial wildcards are not supported, and values like *w.example.com are
invalid.
At least one of sni_host and alpn is required.
Up to 100 sni hosts across all matches can be set.
[[["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\u003eThe \u003ccode\u003eTlsRoute.Types.RouteMatch\u003c/code\u003e class in the Network Services v1 API defines how to match requests to a specific action, using an AND logic for multiple match types.\u003c/p\u003e\n"],["\u003cp\u003eIf no \u003ccode\u003erouteMatch\u003c/code\u003e field is provided, the rule will match all traffic unconditionally.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRouteMatch\u003c/code\u003e offers properties like \u003ccode\u003eAlpn\u003c/code\u003e and \u003ccode\u003eSniHost\u003c/code\u003e, which allow for matching against Application-Layer Protocol Negotiation and Server Name Indication, respectively, with at least one of these being required for a match.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRouteMatch\u003c/code\u003e class has two constructors, one empty and the other accepting a \u003ccode\u003eRouteMatch\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,[]]