io.apimatic:okhttp-client-adapter

An adapter for okhttp-client library consumed by the SDKs generated with APIMatic.


License
MIT

Documentation

okhttp-client-adapter

Maven Central Tests Lint Code Test Coverage Licence

Introduction

This project contains OkHttp client adpater which is wrapper of Okhttp client implementation. This implementation is being provided to java core library from an APIMatic SDK.

Prerequisites

  • The JRE flavor requires JDK 1.8.

Install the maven package

OKHttp Client adapter's Maven group ID is io.apimatic, and its artifact ID is core-interfaces.

Classes

Name Description
OkClient HTTP Client class to send HTTP Requests and read the responses
HttpRedirectInterceptor HttpRedirectInterceptor intercepts and complete 307 and 308 redirects as described in RFC
RetryInterceptor RetryInterceptor intercepts and retry requests if failed based on configuration