Class RawResponseBase

java.lang.Object
kong.unirest.core.RawResponseBase
All Implemented Interfaces:
RawResponse
Direct Known Subclasses:
JavaResponse

public abstract class RawResponseBase extends Object implements RawResponse
  • Field Details

  • Constructor Details

  • Method Details

    • getCharSet

      protected String getCharSet()
    • getCharsetFromContentType

      private String getCharsetFromContentType(String contentType)
      Parse out a charset from a content type header.
      Parameters:
      contentType - e.g. "text/html; charset=EUC-JP"
      Returns:
      "EUC-JP", or null if not found. Charset is trimmed and uppercased.
    • getConfig

      public Config getConfig()
      Description copied from interface: RawResponse
      Returns the current config for this request/response
      Specified by:
      getConfig in interface RawResponse
      Returns:
      the config
    • toSummary

      public HttpResponseSummary toSummary()
      Description copied from interface: RawResponse
      returns a lightweight read only summary of the response.
      Specified by:
      toSummary in interface RawResponse
      Returns:
      the response summary
    • getRequestSummary

      public HttpRequestSummary getRequestSummary()
      Description copied from interface: RawResponse
      returns a lightweight read only summary of the request.
      Specified by:
      getRequestSummary in interface RawResponse
      Returns:
      the request summary