Package io.micrometer.core.ipc.http
Class OkHttpSender
- java.lang.Object
-
- io.micrometer.core.ipc.http.OkHttpSender
-
- All Implemented Interfaces:
HttpSender
public class OkHttpSender extends java.lang.Object implements HttpSender
OkHttp-basedHttpSender
.- Since:
- 1.1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micrometer.core.ipc.http.HttpSender
HttpSender.Method, HttpSender.Request, HttpSender.Response
-
-
Constructor Summary
Constructors Constructor Description OkHttpSender()
OkHttpSender(okhttp3.OkHttpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpSender.Response
send(HttpSender.Request request)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.micrometer.core.ipc.http.HttpSender
delete, get, head, newRequest, options, post, put
-
-
-
-
Method Detail
-
send
public HttpSender.Response send(HttpSender.Request request) throws java.lang.Throwable
- Specified by:
send
in interfaceHttpSender
- Throws:
java.lang.Throwable
-
-