TrustPinHttpClient.create constructor

TrustPinHttpClient.create()

Creates a TrustPinHttpClient with a default http.Client.

This is a convenience constructor that creates a standard http.Client internally. TrustPin must be properly configured with TrustPin.setup before making requests.

Implementation

factory TrustPinHttpClient.create() {
  return TrustPinHttpClient(http.Client());
}