Skip to content

Route class

Defined in

Namespace: Refit.Testing Assembly: Refit.Testing.dll Full name: Refit.Testing.Route Modifiers: public static

Summary

View source

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

NameSummary
static AnyMatches any method for the given path template.
static GetMatches a GET request for the given path template.
static PostMatches a POST request for the given path template.
static PutMatches a PUT request for the given path template.
static DeleteMatches a DELETE request for the given path template.
static PatchMatches a PATCH request for the given path template.
static HeadMatches a HEAD request for the given path template.
static ForMatches a request with the given method for the given path template.
Inherited members