Interface EasyHttpRequest
-
- All Known Implementing Classes:
SimpleEasyHttpRequest
public interface EasyHttpRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
EasyHttpRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static EasyHttpRequest.Builder
builder(@NotNull HttpClient client, HttpClient.Method method)
@NotNull EasyHttpResponse
execute()
@NotNull CompletableFuture<EasyHttpResponse>
executeAsync()
@Nullable String
getApiEndpoint()
@Nullable String
getApiPath()
@Nullable String
getBody()
@Nullable Headers
getHeaders()
HttpClient.Method
getMethod()
@Nullable QueryParams
getQueryParams()
@Nullable String
getUrl()
boolean
hasBody()
@NotNull String
resolveUrl()
-
-
-
Method Detail
-
builder
@NotNull static EasyHttpRequest.Builder builder(@NotNull @NotNull HttpClient client, @NotNull HttpClient.Method method)
-
execute
@NotNull @NotNull EasyHttpResponse execute() throws HttpRequestException
- Throws:
HttpRequestException
-
executeAsync
@NotNull @NotNull CompletableFuture<EasyHttpResponse> executeAsync() throws HttpRequestException
- Throws:
HttpRequestException
-
getMethod
@NotNull HttpClient.Method getMethod()
-
getApiEndpoint
@Nullable @Nullable String getApiEndpoint()
-
getApiPath
@Nullable @Nullable String getApiPath()
-
getUrl
@Nullable @Nullable String getUrl()
-
getQueryParams
@Nullable @Nullable QueryParams getQueryParams()
-
getHeaders
@Nullable @Nullable Headers getHeaders()
-
getBody
@Nullable @Nullable String getBody()
-
hasBody
boolean hasBody()
-
resolveUrl
@NotNull @NotNull String resolveUrl() throws HttpRequestException
- Throws:
HttpRequestException
-
-