public interface ArangoRouteAsync extends ArangoSerializationAccessor
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Response> |
delete()
Performs a DELETE request to the given URL and returns the server response.
|
CompletableFuture<Response> |
get()
Performs a GET request to the given URL and returns the server response.
|
CompletableFuture<Response> |
head()
Performs a HEAD request to the given URL and returns the server response.
|
CompletableFuture<Response> |
patch()
Performs a PATCH request to the given URL and returns the server response.
|
CompletableFuture<Response> |
post()
Performs a POST request to the given URL and returns the server response.
|
CompletableFuture<Response> |
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.
|
util, utilArangoRouteAsync 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)
VPackSlice.body - The response bodyArangoRouteAsyncCompletableFuture<Response> delete()
CompletableFuture<Response> get()
CompletableFuture<Response> head()
CompletableFuture<Response> patch()
CompletableFuture<Response> post()
CompletableFuture<Response> put()
Copyright © 2016–2023 ArangoDB GmbH. All rights reserved.