C# Class ModServer.HttpRequest

Afficher le fichier Open project: tyandjel94/RowanParkingPassApp Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode Description
parseCookie ( String cookie ) : void

Method Details

HttpRequest() public méthode

public HttpRequest ( String path ) : System
path String
Résultat System

HttpRequest() public méthode

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
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

addHeader() public méthode

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
Résultat void

addPost() public méthode

public addPost ( String field, String data ) : void
field String
data String
Résultat void

getGuessFileType() public méthode

public getGuessFileType ( ) : string
Résultat string

getPostBodyData() public méthode

public getPostBodyData ( bool calculateContentLength ) : string
calculateContentLength bool
Résultat string

guessContentLength() public méthode

public guessContentLength ( ) : void
Résultat void

requestMetaInfo() public méthode

public requestMetaInfo ( String field ) : String
field String
Résultat String

Property Details

COOKIE_PROCESSING_REGEX public_oe static_oe property

public static Regex,System.Text.RegularExpressions COOKIE_PROCESSING_REGEX
Résultat System.Text.RegularExpressions.Regex

POST_PROCESSING_REGEX public_oe static_oe property

public static Regex,System.Text.RegularExpressions POST_PROCESSING_REGEX
Résultat System.Text.RegularExpressions.Regex

cookies public_oe property

public Dictionary cookies
Résultat String>.Dictionary

getValues public_oe property

public Dictionary getValues
Résultat String>.Dictionary

headers public_oe property

public Dictionary headers
Résultat String>.Dictionary

postValues public_oe property

public Dictionary postValues
Résultat String>.Dictionary