C# Class DirtyHttp, whatsapp-desktop-client

Provides a dirty but simple-to-use wrapper for the HttpWebRequest classes.
ファイルを表示 Open project: sambulosenda/whatsapp-desktop-client Class Usage Examples

Public Properties

Property Type Description
Method HttpMethod,
Timeout int
Url string
Useragent string

Public Methods

Method Description
DirtyHttp ( string _Url ) : System

Class constructor, initializes the class. This is an overload for the default class constructor. Uses HTTP GET with a timeout value of 30000 mili-seconds.

DirtyHttp ( string _Url, int _Timeout, HttpMethod, _Method ) : System

Class constructor, initializes the class.

doRequest ( ) : string

Executes the HTTP request.

Method Details

DirtyHttp() public method

Class constructor, initializes the class. This is an overload for the default class constructor. Uses HTTP GET with a timeout value of 30000 mili-seconds.
public DirtyHttp ( string _Url ) : System
_Url string
return System

DirtyHttp() public method

Class constructor, initializes the class.
public DirtyHttp ( string _Url, int _Timeout, HttpMethod, _Method ) : System
_Url string The URL the request should be made at.
_Timeout int The timeout value in mili-seconds.
_Method HttpMethod, The HTTP method that should be used.
return System

doRequest() public method

Executes the HTTP request.
public doRequest ( ) : string
return string

Property Details

Method public_oe property

Holds what HTTP method should be used.
public HttpMethod, Method
return HttpMethod,

Timeout public_oe property

The timeout value in mili-seconds.
public int Timeout
return int

Url public_oe property

The URL the request should be made at.
public string Url
return string

Useragent public_oe property

Holds the default Whatsapp useragent string
public string Useragent
return string