NFinal.Middleware.Proxy 1.0.11-rc1

http middleware for proxy.support nfinal mvc,asp.net mvc and .net core

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.

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);
}

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);
}

Release Notes

Lucas created

This package is not used by any popular GitHub repositories.

Version History

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