YarpConfigurationBuilder.AddRoute
Method
type YarpConfigurationBuilder interface { // ... omitted for brevity AddRoute( path string, target any, ) YarpRoute}Signature
method
AddRoute Adds a route for a cluster, endpoint, resource, or string destination target.
AddRoute( path string, target any,) YarpRouteParameters
pathstringThe path to match for this route.targetanyThe target cluster, endpoint, resource, or string destination for this route.Returns
YarpRoute The created route.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: