ArangoDB-Community / arangodb-net-standard

A consistent, comprehensive, minimal interface to enable .NET applications to use the complete range of features exposed by the ArangoDB REST API.
Apache License 2.0
76 stars 30 forks source link

Mention in the readme that custom HttpClient instances can be provided to HttpApiTransport #451

Open DiscoPYF opened 1 year ago

DiscoPYF commented 1 year ago

The readme puts emphasis on how custom transport implementations can be provided, but we should also mention that consumers can provide their own instance of HttpClient to HttpApiTransport without reimplementing the transport layer.

var client = new HttpClient(); // my own HTTP client with a bunch of custom settings
var transport = new HttpApiTransport(client);

This may actually satisfy most custom needs related to HttpClient.