Package com.swmansion.starknet.service.http
Http service used to communicate with Starknet.
You can create a OkHttpService
yourself and pass it whenever creating a provider. This way your whole application can use a single OkHttpClient
. Read more here.
import com.swmansion.starknet.service.http.OkHttpService;
// (...)
OkHttpClient httpClient = new OkHttpClient();
OkHttpService httpService = new OkHttpService(httpClient);
See: Description
-
Class Summary Class Description HttpRequest HttpResponse Data class representing a completed http request. Payload OkHttpService Service for making http requests using OkHttp library. -
Interface Summary Interface Description HttpService Service for http communication.