C# Class AutomatedTester.BrowserMob.Client

Show file Open project: Colligo/AutomatedTester.BrowserMob

Public Methods

Method Description
Blacklist ( string regexp, int statusCode ) : void
Client ( string url ) : System
Close ( ) : void

shuts down the proxy and closes the port

GetHar ( ) : HarResult
GetHarRaw ( ) : string
NewHar ( string reference = null ) : void
NewPage ( string reference ) : void
RemapHost ( string host, string ipAddress ) : void
SetLimits ( LimitOptions options ) : void
WhiteList ( string regexp, int statusCode ) : void

Private Methods

Method Description
FormatBlackOrWhiteListFormData ( string regexp, int statusCode ) : string
MakeJsonRequest ( string url, string method, string payload ) : WebResponse
MakeRequest ( string url, string method, string reference = null ) : WebResponse

Method Details

Blacklist() public method

public Blacklist ( string regexp, int statusCode ) : void
regexp string
statusCode int
return void

Client() public method

public Client ( string url ) : System
url string
return System

Close() public method

shuts down the proxy and closes the port
public Close ( ) : void
return void

GetHar() public method

public GetHar ( ) : HarResult
return AutomatedTester.BrowserMob.HAR.HarResult

GetHarRaw() public method

public GetHarRaw ( ) : string
return string

NewHar() public method

public NewHar ( string reference = null ) : void
reference string
return void

NewPage() public method

public NewPage ( string reference ) : void
reference string
return void

RemapHost() public method

public RemapHost ( string host, string ipAddress ) : void
host string
ipAddress string
return void

SetLimits() public method

public SetLimits ( LimitOptions options ) : void
options LimitOptions
return void

WhiteList() public method

public WhiteList ( string regexp, int statusCode ) : void
regexp string
statusCode int
return void