Interface HttpService
-
- All Implemented Interfaces:
public interface HttpServiceService for http communication.
Implementers of this interface provide methods to facilitate http communication between Providers and Starknet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classHttpService.Payload
-
Method Summary
Modifier and Type Method Description abstract HttpResponsesend(HttpService.Payload payload)Send a synchronous http request. abstract CompletableFuture<HttpResponse>sendAsync(HttpService.Payload payload)Send an asynchronous http request. -
-
Method Detail
-
send
abstract HttpResponse send(HttpService.Payload payload)
Send a synchronous http request.
- Parameters:
payload- a payload to be sent
-
sendAsync
abstract CompletableFuture<HttpResponse> sendAsync(HttpService.Payload payload)
Send an asynchronous http request.
- Parameters:
payload- a payload to be sent
-
-
-
-