Class Response

java.lang.Object
de.otto.esidialect.Response

public class Response extends Object
Response from the fetch-function. It uses byte[] instead of String so that binary content can be passed as well.
  • Constructor Details

    • Response

      public Response(int statusCode, String statusText, byte[] responseBody, String contentType)
  • Method Details

    • getStatusCode

      public int getStatusCode()
    • getResponseBody

      public String getResponseBody()
    • getResponseBodyAsBytes

      public byte[] getResponseBodyAsBytes()
    • getStatusText

      public String getStatusText()
    • getContentType

      public String getContentType()