Interface HttpService
-
- All Implemented Interfaces:
public interface HttpService
Service 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 class
HttpService.Payload
-
Method Summary
Modifier and Type Method Description abstract HttpResponse
send(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
-
-
-
-