C# Class DirtyHttp, whatsapp-desktop-client

Provides a dirty but simple-to-use wrapper for the HttpWebRequest classes.
Afficher le fichier Open project: sambulosenda/whatsapp-desktop-client Class Usage Examples

Méthodes publiques

Свойство Type Description
Method HttpMethod,
Timeout int
Url string
Useragent string

Méthodes publiques

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

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

DirtyHttp() public méthode

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

doRequest() public méthode

Executes the HTTP request.
public doRequest ( ) : string
Résultat string

Property Details

Method public_oe property

Holds what HTTP method should be used.
public HttpMethod, Method
Résultat HttpMethod,

Timeout public_oe property

The timeout value in mili-seconds.
public int Timeout
Résultat int

Url public_oe property

The URL the request should be made at.
public string Url
Résultat string

Useragent public_oe property

Holds the default Whatsapp useragent string
public string Useragent
Résultat string