MCPcopy Index your code
hub / github.com/OpenFeign/feign / execute

Method execute

ribbon/src/main/java/feign/ribbon/LBClient.java:74–97  ·  view source on GitHub ↗
(RibbonRequest request, IClientConfig configOverride)

Source from the content-addressed store, hash-verified

72 }
73
74 @Override
75 public RibbonResponse execute(RibbonRequest request, IClientConfig configOverride)
76 throws IOException, ClientException {
77 Request.Options options;
78 if (configOverride != null) {
79 options =
80 new Request.Options(
81 configOverride.get(CommonClientConfigKey.ConnectTimeout, connectTimeout),
82 TimeUnit.MILLISECONDS,
83 (configOverride.get(CommonClientConfigKey.ReadTimeout, readTimeout)),
84 TimeUnit.MILLISECONDS,
85 configOverride.get(CommonClientConfigKey.FollowRedirects, followRedirects));
86 } else {
87 options =
88 new Request.Options(
89 connectTimeout, TimeUnit.MILLISECONDS, readTimeout, TimeUnit.MILLISECONDS, true);
90 }
91 Response response = request.client().execute(request.toRequest(), options);
92 if (retryableStatusCodes.contains(response.status())) {
93 response.close();
94 throw new ClientException(ClientException.ErrorType.SERVER_THROTTLED);
95 }
96 return new RibbonResponse(request.getUri(), response);
97 }
98
99 @Override
100 public RequestSpecificRetryHandler getRequestSpecificRetryHandler(

Callers

nothing calls this directly

Calls 6

statusMethod · 0.95
closeMethod · 0.95
toRequestMethod · 0.80
getMethod · 0.65
executeMethod · 0.65
clientMethod · 0.45

Tested by

no test coverage detected