Interface Response

    • Method Detail

      • getUrl

        URL getUrl()
        Get the URL used to retrieve this response.
        Returns:
        URL
      • getCode

        int getCode()
        Get the response code.
        Returns:
        protocol response code (int)
      • getHeader

        String getHeader​(String name)
        Get the value of a named header.
        Parameters:
        name - key of the header you wish to retrieve
        Returns:
        header value
      • getHeaders

        Metadata getHeaders()
        Get all the headers.
        Returns:
        populated headers Metadata
      • getContent

        byte[] getContent()
        Get the full content of the response.
        Returns:
        a byte array representing the response content