Warproxy

Created: 2014-05-19 19:09
Updated: 2016-05-22 07:54
License: other
c#

README.md

Warproxy 2.0.0 BETA

SUPPORT

  • Support TCP only.
  • Support IPv4 & IPv6.
  • Support keep-alive connection (HTTP 1.1).
  • Support other proxy.
  • Available after 01.15.15

LICENSE

  • MIT LICENSE
  • EXEMPTION CLAUSE
  • All caused by the usage of WARP is the responsibility of the user.
  • Code contributors WARP is not responsible for the use.

CLASS

WarpEngine (IDisposable)

  • Constructor

  • new WarpEngine()

  • new WarpEngine(Port)

  • Function

  • void Dispose()

  • void Start()

  • void Stop()

  • void SetWarp(WebRequest)

  • Property

  • int ConnectionCount (ReadOnly)

  • int MaxQueuedConnections

  • int BufferSize

  • int Port

  • int TimeOut

WarpExtensions (static)

  • Function

  • void SetWarp(this WebRequest, WarpEngine)

  • void SetWarp(this WebRequest, WarpEngine, IWebProxy)

  • Usage

  • (WebRequest).SetWarp(engine)

  • (WebRequest).SetWarp(engine, IWebProxy)

  • Example

WebRequest req1 = WebRequest.Create("http://www.google.com/");
WebRequest req2 = WebRequest.Create("http://www.google.com/");

engine.SetProxy(HttpWebRequest.DefaultWebProxy);

// req1 use DefaultWebProxy
req1.SetWarp(engine);

// req2 use NewWebProxy. not DefaultWebProxy
req2.SetWarp(engine, NewWebProxy);
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more