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

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

Public Methods

Method 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 method

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
return void

Close() public method

This method closes the WebResponse object.
public Close ( ) : void
return void

GetDataStream() public method

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

HttpClientUtil() public method

Initializes a new instance of the HttpClientUtil class.
public HttpClientUtil ( ) : System
return System

Reset() public method

This method resets all configurations.
public Reset ( ) : void
return void