Package org.javacord.api.util.rest
Interface RestRequestInformation
-
public interface RestRequestInformationSome information about a rest request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiscordApigetApi()Gets the discord api instance which created the request.java.util.Optional<java.lang.String>getBody()Gets the body of the rest request as string.java.util.Map<java.lang.String,java.lang.String>getHeaders()Gets the headers of the rest request.java.util.Map<java.lang.String,java.lang.String>getQueryParameters()Gets the query parameters of the rest request.java.net.URLgetUrl()Gets the url, the request should be sent to.
-
-
-
Method Detail
-
getApi
DiscordApi getApi()
Gets the discord api instance which created the request.- Returns:
- The responsible discord api instance.
-
getUrl
java.net.URL getUrl()
Gets the url, the request should be sent to.- Returns:
- The url, the request should be sent to.
-
getQueryParameters
java.util.Map<java.lang.String,java.lang.String> getQueryParameters()
Gets the query parameters of the rest request.- Returns:
- The query parameters of the rest request.
-
getHeaders
java.util.Map<java.lang.String,java.lang.String> getHeaders()
Gets the headers of the rest request.- Returns:
- The headers of the rest request.
-
getBody
java.util.Optional<java.lang.String> getBody()
Gets the body of the rest request as string.- Returns:
- The body of the rest request.
-
-