Package net.dv8tion.jda.api.events.http
Class HttpRequestEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.http.HttpRequestEvent
-
- All Implemented Interfaces:
GenericEvent
public class HttpRequestEvent extends Event
Indicates that aRestAction
has been executed.Depending on the request and its result not all values have to be populated.
-
-
Constructor Summary
Constructors Constructor Description HttpRequestEvent(Request<?> request, Response response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getCFRays()
Request<?>
getRequest()
RequestBody
getRequestBody()
java.lang.Object
getRequestBodyRaw()
Headers
getRequestHeaders()
Request
getRequestRaw()
Response
getResponse()
ResponseBody
getResponseBody()
DataArray
getResponseBodyAsArray()
DataObject
getResponseBodyAsObject()
java.lang.String
getResponseBodyAsString()
Headers
getResponseHeaders()
Response
getResponseRaw()
RestAction<?>
getRestAction()
net.dv8tion.jda.internal.requests.Route.CompiledRoute
getRoute()
boolean
isRateLimit()
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Method Detail
-
getRequest
@Nonnull public Request<?> getRequest()
-
getRequestBody
@Nullable public RequestBody getRequestBody()
-
getRequestBodyRaw
@Nullable public java.lang.Object getRequestBodyRaw()
-
getRequestHeaders
@Nullable public Headers getRequestHeaders()
-
getRequestRaw
@Nullable public Request getRequestRaw()
-
getResponse
@Nullable public Response getResponse()
-
getResponseBody
@Nullable public ResponseBody getResponseBody()
-
getResponseBodyAsArray
@Nullable public DataArray getResponseBodyAsArray()
-
getResponseBodyAsObject
@Nullable public DataObject getResponseBodyAsObject()
-
getResponseBodyAsString
@Nullable public java.lang.String getResponseBodyAsString()
-
getResponseHeaders
@Nullable public Headers getResponseHeaders()
-
getResponseRaw
@Nullable public Response getResponseRaw()
-
getCFRays
@Nonnull public java.util.Set<java.lang.String> getCFRays()
-
getRestAction
@Nonnull public RestAction<?> getRestAction()
-
getRoute
@Nonnull public net.dv8tion.jda.internal.requests.Route.CompiledRoute getRoute()
-
isRateLimit
public boolean isRateLimit()
-
-