Interface RestRequestInformation



  • public interface RestRequestInformation
    Some information about a rest request.
    • Method Detail

      • getApi

        DiscordApi getApi​()
        Gets the discord api instance which created the request.
        Returns:
        The responsible discord api instance.
      • getUrl

        URL getUrl​()
        Gets the url, the request should be sent to.
        Returns:
        The url, the request should be sent to.
      • getQueryParameters

        Map<String,String> getQueryParameters​()
        Gets the query parameters of the rest request.
        Returns:
        The query parameters of the rest request.
      • getHeaders

        Map<String,String> getHeaders​()
        Gets the headers of the rest request.
        Returns:
        The headers of the rest request.
      • getBody

        Optional<String> getBody​()
        Gets the body of the rest request as string.
        Returns:
        The body of the rest request.