-
public interface RestThis is the main interface of the REST system.Usage:
Rest rest = Rest.connect("127.0.0.1", 8080); CompletableFuture<Response> future = rest.post("user", Param.of("firstname", "Adam"), Param.of("lastname", "Adamsson") ); future.get();- Since:
- 1.0.0
- Author:
- Emil Forslund
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRest.Methodstatic classRest.Protocol
-
Method Summary
-
-
-
Method Detail
-
get
CompletableFuture<Response> get(String path, Option... option)
-
post
CompletableFuture<Response> post(String path, Option... option)
-
delete
CompletableFuture<Response> delete(String path, Option... option)
-
put
CompletableFuture<Response> put(String path, Option... option)
-
options
CompletableFuture<Response> options(String path, Option... option)
-
head
CompletableFuture<Response> head(String path, Option... option)
-
get
CompletableFuture<Response> get(String path, InputStream body, Option... option)
-
post
CompletableFuture<Response> post(String path, InputStream body, Option... option)
-
delete
CompletableFuture<Response> delete(String path, InputStream body, Option... option)
-
put
CompletableFuture<Response> put(String path, InputStream body, Option... option)
-
options
CompletableFuture<Response> options(String path, InputStream body, Option... option)
-
head
CompletableFuture<Response> head(String path, InputStream body, Option... option)
-
delete
CompletableFuture<Response> delete(String path, Iterator<String> uploader, Option... option)
-
options
CompletableFuture<Response> options(String path, Iterator<String> uploader, Option... option)
-
get
CompletableFuture<Response> get(String path, String data, Option... option)
-
post
CompletableFuture<Response> post(String path, String data, Option... option)
-
delete
CompletableFuture<Response> delete(String path, String data, Option... option)
-
put
CompletableFuture<Response> put(String path, String data, Option... option)
-
options
CompletableFuture<Response> options(String path, String data, Option... option)
-
head
CompletableFuture<Response> head(String path, String data, Option... option)
-
-