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.String
NO_RESPONSE_BODY
-
Constructor Summary
Constructors Constructor Description Response(int code, java.lang.String body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
body()
int
code()
boolean
isSuccessful()
HttpSender.Response
onError(java.util.function.Consumer<HttpSender.Response> onError)
HttpSender.Response
onSuccess(java.util.function.Consumer<HttpSender.Response> onSuccess)
-
-
-
Field Detail
-
NO_RESPONSE_BODY
public static final java.lang.String NO_RESPONSE_BODY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Response
public Response(int code, @Nullable java.lang.String body)
-
-
Method Detail
-
code
public int code()
-
body
public java.lang.String body()
-
onSuccess
public HttpSender.Response onSuccess(java.util.function.Consumer<HttpSender.Response> onSuccess)
-
onError
public HttpSender.Response onError(java.util.function.Consumer<HttpSender.Response> onError)
-
isSuccessful
public boolean isSuccessful()
-
-