C# Class Zoompf.SPDYAnalysis.SimpleRequestor

Very basic, blocking, Http requestor. Only support HEAD
Datei anzeigen Open project: zoompf/SPDYCheck Class Usage Examples

Public Properties

Property Type Description
Timeout int
UserAgent string

Protected Properties

Property Type Description
clientIP String

Public Methods

Method Description
Head ( Uri url ) : SimpleResponse
Head ( string url ) : SimpleResponse
SimpleRequestor ( String clientIP ) : System

Protected Methods

Method Description
GetResponse ( HttpWebRequest request ) : HttpWebResponse
parseResponse ( HttpWebResponse response ) : SimpleResponse

Private Methods

Method Description
CreateRequest ( Uri url, string method ) : HttpWebRequest
ReadAllBytes ( Stream stream ) : byte[]

Read all the bytes from a stream

ReadFully ( HttpWebResponse response ) : byte[]

Reads data from a web stream, unwrapping any compression that exists

Method Details

GetResponse() protected method

protected GetResponse ( HttpWebRequest request ) : HttpWebResponse
request System.Net.HttpWebRequest
return System.Net.HttpWebResponse

Head() public method

public Head ( Uri url ) : SimpleResponse
url System.Uri
return SimpleResponse

Head() public method

public Head ( string url ) : SimpleResponse
url string
return SimpleResponse

SimpleRequestor() public method

public SimpleRequestor ( String clientIP ) : System
clientIP String
return System

parseResponse() protected method

protected parseResponse ( HttpWebResponse response ) : SimpleResponse
response System.Net.HttpWebResponse
return SimpleResponse

Property Details

Timeout public_oe property

public int Timeout
return int

UserAgent public_oe property

public string UserAgent
return string

clientIP protected_oe property

protected String clientIP
return String