Route class¶
Defined in
Namespace: Refit.Testing
Assembly: Refit.Testing.dll
Full name: Refit.Testing.Route
Modifiers: public static
Summary¶
Factory for the common RouteMatcher shapes, one per HTTP method. Each takes a path
template that mirrors the route on the Refit interface, e.g. Route.Get("/users/{id}").
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481, net471
Methods¶
| Name | Summary |
|---|---|
| static Any | Matches any method for the given path template. |
| static Get | Matches a GET request for the given path template. |
| static Post | Matches a POST request for the given path template. |
| static Put | Matches a PUT request for the given path template. |
| static Delete | Matches a DELETE request for the given path template. |
| static Patch | Matches a PATCH request for the given path template. |
| static Head | Matches a HEAD request for the given path template. |
| static For | Matches a request with the given method for the given path template. |