AspNetCore.Proxy 1.2.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package AspNetCore.Proxy --version 1.2.2
NuGet\Install-Package AspNetCore.Proxy -Version 1.2.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AspNetCore.Proxy" Version="1.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AspNetCore.Proxy --version 1.2.2
#r "nuget: AspNetCore.Proxy, 1.2.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AspNetCore.Proxy as a Cake Addin
#addin nuget:?package=AspNetCore.Proxy&version=1.2.2

// Install AspNetCore.Proxy as a Cake Tool
#tool nuget:?package=AspNetCore.Proxy&version=1.2.2

AspNetCore.Proxy

ASP.NET Core Proxies made easy.

Information

Install

dotnet add package AspNetCore.Proxy

Test

Download the source and run.

dotnet restore
dotnet test src/Test/AspNetCore.Proxy.Tests.csproj

Compatibility

Latest .NET Standard 2.0.

Examples

There are two main ways to use this library to proxy calls.

You can define a map and a proxy.

app.UseProxy("api/{arg1}/{arg2}", async (args) => {
    // Get the proxied address.
    return await SomeCallThatComputesAUrl(args["arg1"], args["arg2"]);
});

However, you can also make the proxy look and feel almost like a route.

In your Configure(IApplicationBuilder, IHostingEnvironment) method, add the middleware.

app.UseProxies();

Then, create a static method which returns a Task<string> (where the string is the proxied URI).

[ProxyRoute("api/{arg1}/{arg2}")]
public static async Task<string> GetProxy(string arg1, string arg2)
{
    // Get the proxied address.
    return await SomeCallThatComputesAUrl(arg1, arg2);
}

License

The MIT License (MIT)

Copyright (c) 2017 Aaron Roney

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on AspNetCore.Proxy:

Package Downloads
FenixAlliance.ACL.Dependencies

Application Component for the Alliance Business Suite.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on AspNetCore.Proxy:

Repository Stars
zoriya/Kyoo
A portable and vast media library solution.
AniAPI-Team/AniAPI
Core behind AniAPI HTTP Rest APIs.
EveElseIf/MusicParty
Version Downloads Last updated
4.5.0 23,594 3/7/2024
4.4.0 1,085,888 6/6/2022
4.3.0 530,343 2/14/2022
4.2.2 23,985 1/21/2022
4.2.1 241,054 9/7/2021
4.2.0 180,267 4/13/2021
4.1.0 398,821 8/6/2020
4.0.1 150,705 3/16/2020
4.0.0 2,346 2/28/2020
4.0.0-alpha 410 2/28/2020
3.1.1 22,672 11/14/2019
3.1.0 5,456 10/9/2019
3.0.1 59,401 9/5/2019
2.1.2 15,199 6/15/2019
2.1.1 3,493 4/22/2019
2.1.0 833 4/15/2019
2.0.0 1,799 3/17/2019
1.4.1 5,790 3/16/2019
1.3.0 6,116 1/2/2019
1.2.2 7,278 10/24/2017
1.2.1 971 10/17/2017
1.2.0 933 10/17/2017
1.1.3 938 10/6/2017
1.1.0 947 10/6/2017
1.0.5 948 10/6/2017
1.0.4 974 10/6/2017
1.0.3 944 10/6/2017
1.0.2 932 10/5/2017
1.0.1 961 10/5/2017
1.0.0 1,265 10/5/2017