public interface PrimeHttpClient extends HttpClient
| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD_DELETE |
static String |
METHOD_GET |
static String |
METHOD_PATCH |
static String |
METHOD_POST |
static String |
METHOD_PUT |
| Modifier and Type | Method and Description |
|---|---|
default void |
delete(String uri) |
default <T extends ResponseBody> |
get(String uri,
Class<T> responseBodyClass) |
default <T extends ResponseBody> |
patch(String uri,
Object body,
Class<T> responseBodyClass) |
default <T extends ResponseBody> |
post(String uri,
Object body,
Class<T> responseBodyClass) |
default <T extends ResponseBody> |
put(String uri,
Object body,
Class<T> responseBodyClass) |
call, callstatic final String METHOD_GET
static final String METHOD_POST
static final String METHOD_PUT
static final String METHOD_PATCH
static final String METHOD_DELETE
default <T extends ResponseBody> ApiResponse<T> get(String uri, Class<T> responseBodyClass)
default <T extends ResponseBody> ApiResponse<T> post(String uri, Object body, Class<T> responseBodyClass)
default <T extends ResponseBody> ApiResponse<T> patch(String uri, Object body, Class<T> responseBodyClass)
default <T extends ResponseBody> ApiResponse<T> put(String uri, Object body, Class<T> responseBodyClass)
default void delete(String uri)
Copyright © 2018. All rights reserved.