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

    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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NO_RESPONSE_BODY

      public static final java.lang.String NO_RESPONSE_BODY
      See Also:
      Constant Field Values
  • Constructor Details

    • Response

      public Response​(int code, @Nullable java.lang.String body)
  • Method Details