public interface ArangoRouteAsync extends ArangoSerdeAccessor
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<InternalResponse> |
delete()
Performs a DELETE request to the given URL and returns the server response.
|
CompletableFuture<InternalResponse> |
get()
Performs a GET request to the given URL and returns the server response.
|
CompletableFuture<InternalResponse> |
head()
Performs a HEAD request to the given URL and returns the server response.
|
CompletableFuture<InternalResponse> |
patch()
Performs a PATCH request to the given URL and returns the server response.
|
CompletableFuture<InternalResponse> |
post()
Performs a POST request to the given URL and returns the server response.
|
CompletableFuture<InternalResponse> |
put()
Performs a PUT request to the given URL and returns the server response.
|
ArangoRouteAsync |
route(String... path)
Returns a new
ArangoRouteAsync instance for the given path (relative to the current route) that can be
used to perform arbitrary requests. |
ArangoRouteAsync |
withBody(Object body)
The response body.
|
ArangoRouteAsync |
withHeader(String key,
Object value)
Header that should be sent with each request to the route.
|
ArangoRouteAsync |
withQueryParam(String key,
Object value)
Query parameter that should be sent with each request to the route.
|
getSerdeArangoRouteAsync route(String... path)
ArangoRouteAsync instance for the given path (relative to the current route) that can be
used to perform arbitrary requests.path - The relative URL of the routeArangoRouteAsyncArangoRouteAsync withHeader(String key, Object value)
key - Header keyvalue - Header value (the toString() method will be called for the value}ArangoRouteAsyncArangoRouteAsync withQueryParam(String key, Object value)
key - Query parameter keyvalue - Query parameter value (the toString() method will be called for the value}ArangoRouteAsyncArangoRouteAsync withBody(Object body)
body - The response bodyArangoRouteAsyncCompletableFuture<InternalResponse> delete()
CompletableFuture<InternalResponse> get()
CompletableFuture<InternalResponse> head()
CompletableFuture<InternalResponse> patch()
CompletableFuture<InternalResponse> post()
CompletableFuture<InternalResponse> put()
Copyright © 2016–2023 ArangoDB GmbH. All rights reserved.