Class
HttpProxyManager

Class used to manage the HTTP proxy agent.

Definition

Namespace:ArtOfTest.WebAii.Messaging.Http

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class HttpProxyManager

Inheritance: objectHttpProxyManager

Properties

IsRunning

Gets whether or not the proxy is running.

Declaration

cs-api-definition
public bool IsRunning { get; }

Property Value

bool

Methods

AddBeforeRequestListener(RequestListenerInfo)

Adds an event handler to the proxy's BeforeRequest event. The handler will be called when an HTTP request has been received from the web browser, but before it has been sent to the downstream server.

Declaration

cs-api-definition
public void AddBeforeRequestListener(RequestListenerInfo info)

Parameters

info

RequestListenerInfo

ListenerInfo object describing the subscription

AddBeforeResponseListener(ResponseListenerInfo)

Subscribes an event handler to the proxy's BeforeResponse event. The handler will be called when an HTTP response has been received from a server, but before it has been sent to the web browser.

Declaration

cs-api-definition
public void AddBeforeResponseListener(ResponseListenerInfo info)

Parameters

info

ResponseListenerInfo

ListenerInfo object describing the subscription

RemoveBeforeRequestListener(RequestListenerInfo)

Removes an event handler from the collection of handlers subscribed to the proxy's BeforeRequest event

Declaration

cs-api-definition
public void RemoveBeforeRequestListener(RequestListenerInfo info)

Parameters

info

RequestListenerInfo

ListenerInfo object describing the event handler. Use the same ListenerInfo object that was used to subscribe to the event.

RemoveBeforeResponseListener(ResponseListenerInfo)

Unsubscribes an event handler from the proxy's BeforeResponse event

Declaration

cs-api-definition
public void RemoveBeforeResponseListener(ResponseListenerInfo info)

Parameters

info

ResponseListenerInfo

A ListenerInfo object describing the event handler. Use the same ListenerInfo object that was used to subscribe to the event.