Sample usage:
static void setContent(HttpRequest request, Object item) { request.setContent(new UrlEncodedContent(item)); }
Implementation is not thread-safe.
771772773774775776777778779780781
HttpRequest request = null; if ("POST".equals(requestMethod)) if (postData == null) request = f.buildPostRequest(url, null); else request = f.buildPostRequest(url, new UrlEncodedContent(postData)); else request = f.buildGetRequest(url); if (readTimeout != -1) request.setReadTimeout(readTimeout);
814815816817818819820821822823824
594595596597598599600601602603604
HttpRequest request = null; if ("POST".equals(requestMethod)) if (postData == null) request = f.buildPostRequest(url, null); else request = f.buildPostRequest(url, new UrlEncodedContent(postData)); else request = f.buildGetRequest(url); HttpHeaders headers = new HttpHeaders(); headers.set("X-Factual-Lib", DRIVER_HEADER_TAG); headers.set("Host", host);
669670671672673674675676677678679
954955956957958959960961962963964
874875876877878879880881882883884
663664665666667668669670671672673
813814815816817818819820821822823
659660661662663664665666667668669