Package httpclient
Class HttpCallResponse
java.lang.Object
httpclient.HttpCallResponse
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]fetchBodyAsString(Charset charset) <U> UfetchBodyInto(Serializers.Serializer serializer, Class<U> clazz) <U> UfetchBodyInto(Class<U> clazz) <U> UfetchBodyWith(ResponseBodyParser<U> converter) HttpResponse<byte[]>response()verify(HttpCallResponse.Rule rule) verifyStatusCode(int code) verifySuccess(Function<HttpResponse<?>, ? extends IOException> supplier)
-
Constructor Details
-
HttpCallResponse
-
-
Method Details
-
verifyNot404
- Throws:
IOException
-
verifyNotServerError
- Throws:
IOException
-
verifyStatusCode
- Throws:
IOException
-
verifySuccess
- Throws:
IOException
-
verifySuccess
public HttpCallResponse verifySuccess(Function<HttpResponse<?>, ? extends IOException> supplier) throws IOException- Throws:
IOException
-
verify
- Throws:
IOException
-
fetchBodyInto
- Throws:
IOException
-
fetchBodyInto
- Throws:
IOException
-
fetchBodyWith
- Throws:
IOException
-
fetchBody
- Throws:
IOException
-
fetchBodyAsString
- Throws:
IOException
-
response
-