/** * Update the request attributes. This replaces all existing attributes. * * @param newAttrs The attribute entries to add. * @return the request builder with extra attributes set. */ public RequestBuilder attrs(TypedMap newAttrs) { req = req.withAttrs(newAttrs.asScala()); return this; }
/** * Update the request attributes. This replaces all existing attributes. * * @param newAttrs The attribute entries to add. * @return the request builder with extra attributes set. */ public RequestBuilder attrs(TypedMap newAttrs) { req = req.withAttrs(newAttrs.asScala()); return this; }
/** * Update the request attributes. This replaces all existing attributes. * * @param newAttrs The attribute entries to add. * @return the request builder with extra attributes set. */ public RequestBuilder attrs(TypedMap newAttrs) { req = req.withAttrs(newAttrs.asScala()); return this; }
/** * Returns a simple request builder. The initial request is "GET / HTTP/1.1" from * 127.0.0.1 over an insecure connection. The request is created using the given * factory. * @param requestFactory the incoming request factory */ public RequestBuilder(RequestFactory requestFactory) { req = requestFactory.createRequest( RemoteConnection$.MODULE$.apply("127.0.0.1", false, OptionConverters.toScala(Optional.empty())), "GET", RequestTarget$.MODULE$.apply("/", "/", Map$.MODULE$.empty()), "HTTP/1.1", Headers$.MODULE$.create(), TypedMap.empty().asScala(), new RequestBody(null) ); }
/** * Returns a simple request builder. The initial request is "GET / HTTP/1.1" from * 127.0.0.1 over an insecure connection. The request is created using the given * factory. * @param requestFactory the incoming request factory */ public RequestBuilder(RequestFactory requestFactory) { req = requestFactory.createRequest( RemoteConnection$.MODULE$.apply("127.0.0.1", false, OptionConverters.toScala(Optional.empty())), "GET", RequestTarget$.MODULE$.apply("/", "/", Map$.MODULE$.empty()), "HTTP/1.1", Headers$.MODULE$.create(), TypedMap.empty().asScala(), new RequestBody(null) ); }
/** * Returns a simple request builder. The initial request is "GET / HTTP/1.1" from * 127.0.0.1 over an insecure connection. The request is created using the given * factory. * @param requestFactory the incoming request factory */ public RequestBuilder(RequestFactory requestFactory) { req = requestFactory.createRequest( RemoteConnection$.MODULE$.apply("127.0.0.1", false, OptionConverters.toScala(Optional.empty())), "GET", RequestTarget$.MODULE$.apply("/", "/", Map$.MODULE$.empty()), "HTTP/1.1", Headers$.MODULE$.create(), TypedMap.empty().asScala(), new RequestBody(null) ); }