Package-level declarations
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);
Content copied to clipboard
Types
Link copied to clipboard
class HttpRequest<T>(val payload: HttpService.Payload, val deserializer: HttpResponseDeserializer<T>, val service: HttpService) : Request<T>
Link copied to clipboard
Data class representing a completed http request.
Link copied to clipboard
Link copied to clipboard
interface HttpService
Service for http communication.
Link copied to clipboard
Service for making http requests using OkHttp library. You can provide it with your client to avoid wasting resources.