C# Class ModServer.HttpRequest

Show file Open project: tyandjel94/RowanParkingPassApp Class Usage Examples

Public Properties

Property Type Description
COOKIE_PROCESSING_REGEX System.Text.RegularExpressions.Regex
POST_PROCESSING_REGEX System.Text.RegularExpressions.Regex
cookies String>.Dictionary
getValues String>.Dictionary
headers String>.Dictionary
postValues String>.Dictionary

Public Methods

Method Description
HttpRequest ( String path ) : System
HttpRequest ( String method, String path, String UserAgent = "Mobicontroller/1.0 (mobicontroller.com)", String ConnectionType = "keep-alive", String Accept = "text/html", String ContentType = "text/html" ) : System
ToString ( ) : string

addHeader ( String field, String data ) : void

Will add a header to the collection of headers. !! Will overwrite headers with the same field

addPost ( String field, String data ) : void
getGuessFileType ( ) : string
getPostBodyData ( bool calculateContentLength ) : string
guessContentLength ( ) : void
requestMetaInfo ( String field ) : String

Private Methods

Method Description
parseCookie ( String cookie ) : void

Method Details

HttpRequest() public method

public HttpRequest ( String path ) : System
path String
return System

HttpRequest() public method

public HttpRequest ( String method, String path, String UserAgent = "Mobicontroller/1.0 (mobicontroller.com)", String ConnectionType = "keep-alive", String Accept = "text/html", String ContentType = "text/html" ) : System
method String
path String
UserAgent String
ConnectionType String
Accept String
ContentType String
return System

ToString() public method

public ToString ( ) : string
return string

addHeader() public method

Will add a header to the collection of headers. !! Will overwrite headers with the same field
public addHeader ( String field, String data ) : void
field String
data String
return void

addPost() public method

public addPost ( String field, String data ) : void
field String
data String
return void

getGuessFileType() public method

public getGuessFileType ( ) : string
return string

getPostBodyData() public method

public getPostBodyData ( bool calculateContentLength ) : string
calculateContentLength bool
return string

guessContentLength() public method

public guessContentLength ( ) : void
return void

requestMetaInfo() public method

public requestMetaInfo ( String field ) : String
field String
return String

Property Details

COOKIE_PROCESSING_REGEX public static property

public static Regex,System.Text.RegularExpressions COOKIE_PROCESSING_REGEX
return System.Text.RegularExpressions.Regex

POST_PROCESSING_REGEX public static property

public static Regex,System.Text.RegularExpressions POST_PROCESSING_REGEX
return System.Text.RegularExpressions.Regex

cookies public property

public Dictionary cookies
return String>.Dictionary

getValues public property

public Dictionary getValues
return String>.Dictionary

headers public property

public Dictionary headers
return String>.Dictionary

postValues public property

public Dictionary postValues
return String>.Dictionary