AspNetCore.Proxy
1.2.2
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
<PackageReference Include="AspNetCore.Proxy" Version="1.2.2" />
paket add AspNetCore.Proxy --version 1.2.2
#r "nuget: AspNetCore.Proxy, 1.2.2"
// 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 | Versions 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. |
-
.NETStandard 2.0
- Microsoft.AspNetCore (>= 2.0.0)
- Microsoft.Extensions.DependencyModel (>= 2.0.0)
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 | 319,508 | 3/7/2024 | |
4.4.0 | 1,335,807 | 6/6/2022 | |
4.3.0 | 607,083 | 2/14/2022 | |
4.2.2 | 25,780 | 1/21/2022 | |
4.2.1 | 265,288 | 9/7/2021 | |
4.2.0 | 206,236 | 4/13/2021 | |
4.1.0 | 410,384 | 8/6/2020 | |
4.0.1 | 156,322 | 3/16/2020 | |
4.0.0 | 2,437 | 2/28/2020 | |
4.0.0-alpha | 436 | 2/28/2020 | |
3.1.1 | 23,579 | 11/14/2019 | |
3.1.0 | 5,713 | 10/9/2019 | |
3.0.1 | 66,986 | 9/5/2019 | |
2.1.2 | 15,408 | 6/15/2019 | |
2.1.1 | 3,535 | 4/22/2019 | |
2.1.0 | 875 | 4/15/2019 | |
2.0.0 | 1,826 | 3/17/2019 | |
1.4.1 | 5,828 | 3/16/2019 | |
1.3.0 | 6,166 | 1/2/2019 | |
1.2.2 | 7,331 | 10/24/2017 | |
1.2.1 | 1,015 | 10/17/2017 | |
1.2.0 | 971 | 10/17/2017 | |
1.1.3 | 972 | 10/6/2017 | |
1.1.0 | 982 | 10/6/2017 | |
1.0.5 | 980 | 10/6/2017 | |
1.0.4 | 1,010 | 10/6/2017 | |
1.0.3 | 979 | 10/6/2017 | |
1.0.2 | 968 | 10/5/2017 | |
1.0.1 | 998 | 10/5/2017 | |
1.0.0 | 1,573 | 10/5/2017 |