| Modifier and Type | Method and Description |
|---|---|
Client |
Client.accept(@NotNull Job job)
Sets the request property of
Accept |
Client |
Client.accept(@NotNull Job job)
Sets the request property of
Accept |
Client |
Client.accept(@Nullable String value)
Sets the request property of
Accept |
Client |
Client.accept(@Nullable String value)
Sets the request property of
Accept |
Client |
Client.agent(@Nullable String value)
Sets the request property of
User-Agent |
Client |
Client.agent(@Nullable String value)
Sets the request property of
User-Agent |
Client |
Client.cache(boolean status)
Sets the value of the
useCaches field |
Client |
Client.cache(boolean status)
Sets the value of the
useCaches field |
Client |
Client.contentType(@NotNull Job job)
Sets the request property of
Content-Type |
Client |
Client.contentType(@NotNull Job job)
Sets the request property of
Content-Type |
Client |
Client.contentType(@Nullable String value)
Sets the request property of
Content-Type |
Client |
Client.contentType(@Nullable String value)
Sets the request property of
Content-Type |
Client |
Client.delete()
new Client("https://kat.plus/test/del-user").delete();
|
Client |
Client.delete()
new Client("https://kat.plus/test/del-user").delete();
|
Client |
Client.get()
String url = "https://kat.plus/test/user.json";
User user = new Client(url).get().to(User.class);
|
Client |
Client.get()
String url = "https://kat.plus/test/user.json";
User user = new Client(url).get().to(User.class);
|
Client |
Client.header(@NotNull String key,
@Nullable Object value)
Sets the general request property
|
Client |
Client.header(@NotNull String key,
@Nullable Object value)
Sets the general request property
|
Client |
Client.header(@NotNull String key,
@Nullable String value)
Sets the general request property
|
Client |
Client.header(@NotNull String key,
@Nullable String value)
Sets the general request property
|
Client |
Client.post(byte[] data) |
Client |
Client.post(byte[] data) |
Client |
Client.post(byte[] data,
int i,
int l) |
Client |
Client.post(byte[] data,
int i,
int l) |
Client |
Client.post(Chan chan)
String url = "https://kat.plus/test/add-user";
Chan chan = ...;
User user = new Client(url).post(chan).to(User.class);
|
Client |
Client.post(Chan chan)
String url = "https://kat.plus/test/add-user";
Chan chan = ...;
User user = new Client(url).post(chan).to(User.class);
|
Client |
Client.post(Paper flow) |
Client |
Client.post(Paper flow) |
Client |
Client.post(String data)
String url = "https://kat.plus/test/add-user";
String data = "{:id(1):name(kraity)}";
User user = new Client(url).post(data).to(User.class);
|
Client |
Client.post(String data)
String url = "https://kat.plus/test/add-user";
String data = "{:id(1):name(kraity)}";
User user = new Client(url).post(data).to(User.class);
|
Client |
Client.put(byte[] data) |
Client |
Client.put(byte[] data) |
Client |
Client.put(byte[] data,
int i,
int l) |
Client |
Client.put(byte[] data,
int i,
int l) |
Client |
Client.put(Chan chan) |
Client |
Client.put(Chan chan) |
Client |
Client.put(Paper flow) |
Client |
Client.put(Paper flow) |
Client |
Client.put(String data)
String url = "https://kat.plus/test/add-user";
String data = "{:id(1):name(kraity)}";
User user = new Client(url).put(data).to(User.class);
|
Client |
Client.put(String data)
String url = "https://kat.plus/test/add-user";
String data = "{:id(1):name(kraity)}";
User user = new Client(url).put(data).to(User.class);
|
Client |
Client.readout(int timeout)
Sets a specified read timeout value, in milliseconds
|
Client |
Client.readout(int timeout)
Sets a specified read timeout value, in milliseconds
|
Client |
Client.redirect(boolean status)
Sets whether HTTP redirects (code 3xx) should be automatically followed
|
Client |
Client.redirect(boolean status)
Sets whether HTTP redirects (code 3xx) should be automatically followed
|
Client |
Client.referer(@Nullable String value)
Sets the request property of
Referer |
Client |
Client.referer(@Nullable String value)
Sets the request property of
Referer |
protected Client |
Client.request(String method,
byte[] data,
int i,
int l) |
protected Client |
Client.request(String method,
byte[] data,
int i,
int l) |
protected Client |
Client.request(String method,
Chain chain) |
protected Client |
Client.request(String method,
Chain chain) |
Client |
Client.timeout(int timeout)
Sets a specified connect timeout value, in milliseconds
|
Client |
Client.timeout(int timeout)
Sets a specified connect timeout value, in milliseconds
|
Client |
Client.view()
new Client("https://kat.plus/test/user").view();
|
Client |
Client.view()
new Client("https://kat.plus/test/user").view();
|
Copyright © 2022 Kat+ Team. All rights reserved.