Skip to content

HttpClient

Viridovics edited this page Sep 2, 2018 · 4 revisions

Description

HttpClient provides methods for working with REST. This class supports GET, POST, PUT, DELETE, HEAD, PATCH methods. All methods have two versions: sync and async. Also there is Exec method for execution web requests with custom Http method name.

Initialization

For creation HttpClient you need to fill required parameter IAirContentProcessor contentProcessor.

Example

var contentProcessor = new WeakJsonContentProcessor();
var airClient = new AirHttpClient(contentProcessor);
Clone this wiki locally