Open
Description
For proxy scenarios where routes need to be parameterized for matching but not for capture support a syntax to avoid allocating anything after matching.
e.g.
// ProxyRequest is a made up method that proxies the HttpRequest to another server
endpoints.Map("/api/v1/{*path}", context =>
{
return context.ProxyRequest("http://localhost/old/" + context.Request.Path);
});
endpoints.Map("/api/v2/{*path}", context =>
{
return context.ProxyRequest("http://localhost/new/" + context.Request.Path);
});
cc @Tratcher
Metadata
Metadata
Assignees
Labels
Work that is critical for the release, but we could probably ship withoutIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsThis issue represents an ask for new feature or an enhancement to an existing oneThis issue is related to work on yarp