Package io.micrometer.core.ipc.http
Interface HttpSender
- All Known Implementing Classes:
HttpUrlConnectionSender
,OkHttpSender
,ReactorNettySender
public interface HttpSender
A general-purpose interface for controlling how
MeterRegistry
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
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 Details
-
send
- Throws:
java.lang.Throwable
-
post
-
head
-
put
-
get
-
delete
-
options
-
newRequest
-