entry.withRequestContentLength(entity.length).mark("start"); if (entity.length > 0) { con.setDoOutput(true);
entry.withRequestContentLength(entity.length).mark("start"); if (entity.length > 0) { con.setDoOutput(true);
/** Create a log entry for an rxnetty request. */ public static HttpLogEntry create(HttpClientRequest<ByteBuf> req) { HttpLogEntry entry = new HttpLogEntry() .withMethod(req.getMethod().name()) .withRequestUri(URI.create(req.getUri())) .withRequestContentLength(req.getHeaders().getContentLength(-1)); for (Map.Entry<String, String> h : req.getHeaders().entries()) { entry.withRequestHeader(h.getKey(), h.getValue()); } return entry; }