Interface RestRequestResponseInformation



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

      • getApi

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

        RestRequestInformation getRequest​()
        Gets the request which this response answered.
        Returns:
        The request which this response answered.
      • getCode

        int getCode​()
        Gets the response code of the response.
        Returns:
        The response code of the response.
      • getBody

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