RouteSpec class

An object that represents a route specification. Specify one route type.

Constructors

RouteSpec.new({GrpcRoute? grpcRoute, HttpRoute? http2Route, HttpRoute? httpRoute, int? priority, TcpRoute? tcpRoute})
RouteSpec.fromJson(Map<String, dynamic> json)
factory

Properties

grpcRoute GrpcRoute?
An object that represents the specification of a gRPC route.
final
hashCode int
The hash code for this object.
no setterinherited
http2Route HttpRoute?
An object that represents the specification of an HTTP/2 route.
final
httpRoute HttpRoute?
An object that represents the specification of an HTTP route.
final
priority int?
The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tcpRoute TcpRoute?
An object that represents the specification of a TCP route.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited