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

Method toString

core/src/main/java/feign/Request.java:296–315  ·  view source on GitHub ↗

Request as an HTTP/1.1 request. @return the request.

()

Source from the content-addressed store, hash-verified

294 * @return the request.
295 */
296 @Override
297 public String toString() {
298 final StringBuilder builder = new StringBuilder();
299 builder
300 .append(httpMethod)
301 .append(' ')
302 .append(url)
303 .append(' ')
304 .append(protocolVersion)
305 .append('\n');
306 for (final String field : headers.keySet()) {
307 for (final String value : valuesOrEmpty(headers, field)) {
308 builder.append(field).append(": ").append(value).append('\n');
309 }
310 }
311 if (body != null) {
312 builder.append('\n').append(body.asString());
313 }
314 return builder.toString();
315 }
316
317 /**
318 * Controls the per-request settings currently required to be implemented by all {@link Client

Callers 1

ribbonRequestMethod · 0.95

Calls 3

valuesOrEmptyMethod · 0.80
appendMethod · 0.45
asStringMethod · 0.45

Tested by 1

ribbonRequestMethod · 0.76