public class HttpRequestEvent extends Event
RestAction
has been executed.
Depending on the request and its result not all values have to be populated.
Constructor | Description |
---|---|
HttpRequestEvent(net.dv8tion.jda.core.requests.Request<?> request,
net.dv8tion.jda.core.requests.Response response) |
Modifier and Type | Method | Description |
---|---|---|
java.util.Set<java.lang.String> |
getCFRays() |
|
net.dv8tion.jda.core.requests.Request<?> |
getRequest() |
|
okhttp3.RequestBody |
getRequestBody() |
|
java.lang.Object |
getRequestBodyRaw() |
|
okhttp3.Headers |
getRequestHeaders() |
|
okhttp3.Request |
getRequestRaw() |
|
net.dv8tion.jda.core.requests.Response |
getResponse() |
|
okhttp3.ResponseBody |
getResponseBody() |
|
org.json.JSONArray |
getResponseBodyAsArray() |
|
org.json.JSONObject |
getResponseBodyAsObject() |
|
java.lang.String |
getResponseBodyAsString() |
|
okhttp3.Headers |
getResponseHeaders() |
|
okhttp3.Response |
getResponseRaw() |
|
RestAction<?> |
getRestAction() |
|
net.dv8tion.jda.core.requests.Route.CompiledRoute |
getRoute() |
|
boolean |
isRateLimit() |
getJDA, getResponseNumber
public HttpRequestEvent(net.dv8tion.jda.core.requests.Request<?> request, net.dv8tion.jda.core.requests.Response response)
public net.dv8tion.jda.core.requests.Request<?> getRequest()
public okhttp3.RequestBody getRequestBody()
public java.lang.Object getRequestBodyRaw()
public okhttp3.Headers getRequestHeaders()
public okhttp3.Request getRequestRaw()
public net.dv8tion.jda.core.requests.Response getResponse()
public okhttp3.ResponseBody getResponseBody()
public org.json.JSONArray getResponseBodyAsArray()
public org.json.JSONObject getResponseBodyAsObject()
public java.lang.String getResponseBodyAsString()
public okhttp3.Headers getResponseHeaders()
public okhttp3.Response getResponseRaw()
public java.util.Set<java.lang.String> getCFRays()
public RestAction<?> getRestAction()
public net.dv8tion.jda.core.requests.Route.CompiledRoute getRoute()
public boolean isRateLimit()