Skip to content

Shlyonov/DotNetProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DotNetProxy

Simple .Net 6 http/https proxy server implementation using System.IO.Pipelines and Pipelines.Sockets.Unofficial for direct socket-pipe connection

 

Usage example in ConsoleHost project:

Instal via DI:

IHostBuilder host = ...
host.UseProxyServer()

Get service via DI:

ctor(IProxyServer proxyServer)
{
    ...
}

or

var proxyServer = host.Services.GetService<INetProxyServer>();

And use server:

Task.Run(async () => await proxyServer.StartAsync(10800))
...
proxyServer.Stop();

 

Docker support: run docker files in "/src" folder conext with explicity docker file param -f, for example "docker build -t [your-image-name] -f ConsoleHost/Dockerfile ."

About

Simple .NET 6 http/https proxy server implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors