NFinal.Middleware.Proxy 1.0.11-rc1

.NET Core 1.1 .NET Standard 1.3 .NET Framework 4.0
This is a prerelease version of NFinal.Middleware.Proxy.
Install-Package NFinal.Middleware.Proxy -Version 1.0.11-rc1
dotnet add package NFinal.Middleware.Proxy --version 1.0.11-rc1
<PackageReference Include="NFinal.Middleware.Proxy" Version="1.0.11-rc1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NFinal.Middleware.Proxy --version 1.0.11-rc1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NFinal.Middleware.Proxy, 1.0.11-rc1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NFinal.Middleware.Proxy as a Cake Addin
#addin nuget:?package=NFinal.Middleware.Proxy&version=1.0.11-rc1&prerelease

// Install NFinal.Middleware.Proxy as a Cake Tool
#tool nuget:?package=NFinal.Middleware.Proxy&version=1.0.11-rc1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NFinal.Middleware.Proxy

NFinal的Http代理中间件,可用于NFinal,Asp.net mvc以及.net core。

.net framework下使用:

public void Configuration(IAppBuilder appBuilder)
{
    ///本地请求代理配置
    ProxyConfig config = new ProxyConfig()
    {
        Proxs = new Proxy.Proxy[] {
            //远程服务器
            new Proxy.Proxy(){
                urlPrefix= "/more",
                url="http://www.baidu.com"
            }
        }
    };
    appBuilder.Use<NFinal.Middleware.Proxy.OwinProxyMiddleware>(config);
}

.net core及.net standard下使用:

public void Configure(IApplicationBuilder app)
{
    ///本地请求代理配置
    ProxyConfig config = new ProxyConfig()
    {
        Proxs = new Proxy.Proxy[] {
            //远程服务器
            new Proxy.Proxy(){
                urlPrefix= "/more",
                url="http://www.baidu.com"
            }
        }
    };
    app.UseMiddleware<NFinal.Middleware.Proxy.CoreProxyMiddleware>(config);
}
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net40-client net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.11-rc1 601 1/29/2018

Lucas created