Class LoggedResponse

java.lang.Object
com.github.tomakehurst.wiremock.http.LoggedResponse

public class LoggedResponse extends Object
  • Constructor Details

    • LoggedResponse

      public LoggedResponse(int status, HttpHeaders headers, String bodyAsBase64, Fault fault, String ignoredBodyOnlyUsedForBinding)
  • Method Details

    • from

      public static LoggedResponse from(Response response, Limit responseBodySizeLimit)
    • getStatus

      public int getStatus()
    • getHeaders

      public HttpHeaders getHeaders()
    • getBodyAsString

      public String getBodyAsString()
      Retrieve body as a String encoded in the charset in the "Content-Type" header, or, if that's not present, the default character set (UTF-8)
      Returns:
      Encoded string
    • getMimeType

      public String getMimeType()
    • getCharset

      public Charset getCharset()
    • getBody

      public byte[] getBody()
    • getBodyAsBase64

      public String getBodyAsBase64()
    • getFault

      public Fault getFault()