/** Set the request method (GET, PUT, POST, DELETE). */ public HttpRequestBuilder withMethod(String m) { this.method = m; entry.withMethod(method); return this; }
/** Set the request method (GET, PUT, POST, DELETE). */ public HttpRequestBuilder withMethod(String m) { this.method = m; entry.withMethod(method); return this; }
/** Create a new instance for the specified URI. */ public HttpRequestBuilder(String clientName, URI uri) { this.uri = uri; this.entry = new HttpLogEntry() .withRequestUri(uri) .withClientName(clientName) .withMethod(method); }
/** Create a new instance for the specified URI. */ public HttpRequestBuilder(String clientName, URI uri) { this.uri = uri; this.entry = new HttpLogEntry() .withRequestUri(uri) .withClientName(clientName) .withMethod(method); }
/** 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; }