类 HttpClient
java.lang.Object
com.agentsflex.core.model.client.HttpClient
-
嵌套类概要
嵌套类修饰符和类型类说明private static interfacestatic class -
字段概要
字段修饰符和类型字段说明private static final io.opentelemetry.api.metrics.LongCounterprivate static final io.opentelemetry.api.metrics.DoubleHistogramprivate static final io.opentelemetry.api.metrics.LongCounterprivate static final okhttp3.MediaTypeprivate static final org.slf4j.Loggerprivate static final io.opentelemetry.api.metrics.Meterprivate final okhttp3.OkHttpClientprivate static final io.opentelemetry.api.trace.Tracer -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private okhttp3.Responsebyte[]executeBytes(String url, String method, Map<String, String> headers, Object payload, io.opentelemetry.api.trace.Span span) okhttp3.ResponseexecuteResponse(String url, String method, Map<String, String> headers, Object payload, io.opentelemetry.api.trace.Span span) executeString(String url, String method, Map<String, String> headers, Object payload, io.opentelemetry.api.trace.Span span) private static StringextractHost(String url) byte[]okhttp3.ResponsegetResponse(String url, Map<String, String> headers) private voidinjectStatusCodeToCurrentSpan(okhttp3.Response response) okhttp3.Responsebyte[]byte[]private <T> TtracedCall(String url, String method, Map<String, String> headers, Object payload, HttpClient.HttpClientCall<T> call)
-
字段详细资料
-
LOG
-
JSON_TYPE
-
TRACER
-
METER
-
HTTP_REQUEST_COUNT
-
HTTP_LATENCY_HISTOGRAM
-
HTTP_ERROR_COUNT
-
okHttpClient
-
-
构造器详细资料
-
HttpClient
public HttpClient() -
HttpClient
-
-
方法详细资料
-
get
-
getBytes
-
get
-
getResponse
-
post
-
postBytes
-
put
-
delete
-
multipartString
-
multipartBytes
-
executeString
-
executeBytes
-
executeResponse
-
execute0
private okhttp3.Response execute0(String url, String method, Map<String, String> headers, Object payload) throws IOException- 抛出:
IOException
-
multipart
public okhttp3.Response multipart(String url, Map<String, String> headers, Map<String, throws IOExceptionObject> payload) - 抛出:
IOException
-
injectStatusCodeToCurrentSpan
-
tracedCall
private <T> T tracedCall(String url, String method, Map<String, String> headers, Object payload, HttpClient.HttpClientCall<T> call) -
extractHost
-