Interface ContentResponse

    • Method Detail

      • getMediaType

        java.lang.String getMediaType()
        Returns:
        the media type of the content, such as "text/html" or "application/octet-stream"
      • getEncoding

        java.lang.String getEncoding()
        Returns:
        the encoding of the content, such as "UTF-8"
      • getContent

        byte[] getContent()
        Returns:
        the response content
      • getContentAsString

        java.lang.String getContentAsString()
        Returns:
        the response content as a string, decoding the bytes using the charset provided by the Content-Type header, if any, or UTF-8.