C# Class Mapsui.Providers.Wfs.Utilities.HttpClientUtil

This class provides an easy to use interface for HTTP-GET and HTTP-POST requests.
Afficher le fichier Open project: pauldendulk/Mapsui Class Usage Examples

Méthodes publiques

Méthode Description
AddHeader ( string name, string value ) : void

Adds a HTTP header.

Close ( ) : void

This method closes the WebResponse object.

GetDataStream ( ) : Stream

Performs a HTTP-GET or HTTP-POST request and returns a datastream for reading.

HttpClientUtil ( ) : System

Initializes a new instance of the HttpClientUtil class.

Reset ( ) : void

This method resets all configurations.

Method Details

AddHeader() public méthode

Adds a HTTP header.
public AddHeader ( string name, string value ) : void
name string The name of the header
value string The value of the header
Résultat void

Close() public méthode

This method closes the WebResponse object.
public Close ( ) : void
Résultat void

GetDataStream() public méthode

Performs a HTTP-GET or HTTP-POST request and returns a datastream for reading.
public GetDataStream ( ) : Stream
Résultat Stream

HttpClientUtil() public méthode

Initializes a new instance of the HttpClientUtil class.
public HttpClientUtil ( ) : System
Résultat System

Reset() public méthode

This method resets all configurations.
public Reset ( ) : void
Résultat void