Class HttpClientUtils
java.lang.Object
com.github.tomakehurst.wiremock.common.HttpClientUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
getEntityAsByteArrayAndCloseStream
(org.apache.hc.core5.http.ClassicHttpResponse httpResponse) static String
getEntityAsStringAndCloseStream
(org.apache.hc.core5.http.ClassicHttpResponse httpResponse)
-
Constructor Details
-
HttpClientUtils
public HttpClientUtils()
-
-
Method Details
-
getEntityAsStringAndCloseStream
public static String getEntityAsStringAndCloseStream(org.apache.hc.core5.http.ClassicHttpResponse httpResponse) -
getEntityAsByteArrayAndCloseStream
public static byte[] getEntityAsByteArrayAndCloseStream(org.apache.hc.core5.http.ClassicHttpResponse httpResponse)
-