Package io.micrometer.core.ipc.http
Interface HttpSender
-
- All Known Implementing Classes:
HttpUrlConnectionSender
,OkHttpSender
,ReactorNettySender
public interface HttpSender
A general-purpose interface for controlling howMeterRegistry
implementations perform HTTP calls for various purposes. This interface can be used to inject more advanced customization like SSL verification, key loading, etc. without requiring further additions to registry configurations.- Since:
- 1.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
HttpSender.Method
static class
HttpSender.Request
static class
HttpSender.Response
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default HttpSender.Request.Builder
delete(java.lang.String uri)
default HttpSender.Request.Builder
get(java.lang.String uri)
default HttpSender.Request.Builder
head(java.lang.String uri)
default HttpSender.Request.Builder
newRequest(java.lang.String uri)
default HttpSender.Request.Builder
options(java.lang.String uri)
default HttpSender.Request.Builder
post(java.lang.String uri)
default HttpSender.Request.Builder
put(java.lang.String uri)
HttpSender.Response
send(HttpSender.Request request)
-
-
-
Method Detail
-
send
HttpSender.Response send(HttpSender.Request request) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
post
default HttpSender.Request.Builder post(java.lang.String uri)
-
head
default HttpSender.Request.Builder head(java.lang.String uri)
-
put
default HttpSender.Request.Builder put(java.lang.String uri)
-
get
default HttpSender.Request.Builder get(java.lang.String uri)
-
delete
default HttpSender.Request.Builder delete(java.lang.String uri)
-
options
default HttpSender.Request.Builder options(java.lang.String uri)
-
newRequest
default HttpSender.Request.Builder newRequest(java.lang.String uri)
-
-