ClassHttpProxyManager
Class used to manage the HTTP proxy agent.
Definition
Namespace:ArtOfTest.WebAii.Messaging.Http
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class HttpProxyManager
Inheritance: objectHttpProxyManager
Properties
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
public void AddBeforeRequestListener(RequestListenerInfo info)
Parameters
info
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
public void AddBeforeResponseListener(ResponseListenerInfo info)
Parameters
info
ListenerInfo object describing the subscription
RemoveBeforeRequestListener(RequestListenerInfo)
Removes an event handler from the collection of handlers subscribed to the proxy's BeforeRequest event
Declaration
public void RemoveBeforeRequestListener(RequestListenerInfo info)
Parameters
info
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
public void RemoveBeforeResponseListener(ResponseListenerInfo info)
Parameters
info
A ListenerInfo object describing the event handler. Use the same ListenerInfo object that was used to subscribe to the event.