Package io.micrometer.core.ipc.http
Class HttpSender.Response
java.lang.Object
io.micrometer.core.ipc.http.HttpSender.Response
- Enclosing interface:
- HttpSender
public static class HttpSender.Response
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNO_RESPONSE_BODY -
Constructor Summary
Constructors Constructor Description Response(int code, java.lang.String body) -
Method Summary
Modifier and Type Method Description java.lang.Stringbody()intcode()booleanisSuccessful()HttpSender.ResponseonError(java.util.function.Consumer<HttpSender.Response> onError)HttpSender.ResponseonSuccess(java.util.function.Consumer<HttpSender.Response> onSuccess)
-
Field Details
-
NO_RESPONSE_BODY
public static final java.lang.String NO_RESPONSE_BODY- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
code
public int code() -
body
public java.lang.String body() -
onSuccess
-
onError
-
isSuccessful
public boolean isSuccessful()
-