/external/robolectric-shadows/shadows/httpclient/src/test/java/org/robolectric/shadows/httpclient/ |
ParamsParserTest.java | 6 import org.apache.http.client.methods.HttpDelete; 7 import org.apache.http.client.methods.HttpGet; 8 import org.apache.http.client.methods.HttpPost; 9 import org.apache.http.client.methods.HttpPut; 10 import org.apache.http.entity.StringEntity; 43 HttpGet httpGet = new HttpGet("http://example.com/path?foo=bar"); 51 HttpDelete httpDelete = new HttpDelete("http://example.com/deleteme");
|
FakeHttpLayerTest.java | 5 import org.apache.http.client.methods.HttpGet; 6 import org.apache.http.client.methods.HttpPost; 7 import org.apache.http.client.methods.HttpPut; 8 import org.apache.http.entity.StringEntity; 9 import org.apache.http.message.BasicHeader; 10 import org.apache.http.util.EntityUtils;
|
/external/syzkaller/vendor/golang.org/x/net/http2/ |
go17.go | 12 "net/http" 13 "net/http/httptrace" 23 ctx = context.WithValue(ctx, http.LocalAddrContextKey, c.LocalAddr()) 25 ctx = context.WithValue(ctx, http.ServerContextKey, hs) 34 func requestWithContext(req *http.Request, ctx contextContext) *http.Request { 40 func reqContext(r *http.Request) context.Context { return r.Context() } 49 func setResponseUncompressed(res *http.Response) { res.Uncompressed = true } 51 func traceGotConn(req *http.Request, cc *ClientConn) { 98 func requestTrace(req *http.Request) *clientTrace [all...] |
not_go17.go | 12 "net/http" 26 func reqContext(r *http.Request) fakeContext { 30 func setResponseUncompressed(res *http.Response) { 36 func requestTrace(*http.Request) *clientTrace { return nil } 37 func traceGotConn(*http.Request, *ClientConn) {} 54 func requestWithContext(req *http.Request, ctx contextContext) *http.Request {
|
not_go18.go | 11 "net/http" 14 func configureServer18(h1 *http.Server, h2 *Server) error { 23 func reqGetBody(req *http.Request) func() (io.ReadCloser, error) {
|
/external/syzkaller/vendor/golang.org/x/oauth2/internal/ |
transport.go | 9 "net/http" 15 // WithValue function to associate an *http.Client value with a context. 23 // ContextClientFunc is a func which tries to return an *http.Client 27 type ContextClientFunc func(context.Context) (*http.Client, error) 35 func ContextClient(ctx context.Context) (*http.Client, error) { 37 if hc, ok := ctx.Value(HTTPClient).(*http.Client); ok { 50 return http.DefaultClient, nil 53 func ContextTransport(ctx context.Context) http.RoundTripper { 67 func (t ErrorTransport) RoundTrip(*http.Request) (*http.Response, error) [all...] |
/external/wpa_supplicant_8/src/utils/ |
browser-android.c | 67 struct http_server *http; local 81 http = http_server_init(&addr, 12345, http_req, &data); 82 if (http == NULL) { 91 http_server_deinit(http); 117 http_server_deinit(http);
|
browser-wpadebug.c | 55 wpabuf_put_str(resp, "HTTP/1.1\r\n\r\nUser input completed"); 68 struct http_server *http; local 82 http = http_server_init(&addr, 12345, http_req, &data); 83 if (http == NULL) { 92 http_server_deinit(http); 126 http_server_deinit(http);
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
NetworkUtilities.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 19 import org.apache.http.HttpEntity; 20 import org.apache.http.HttpResponse; 21 import org.apache.http.HttpStatus; 22 import org.apache.http.NameValuePair; 23 import org.apache.http.ParseException; 24 import org.apache.http.auth.AuthenticationException; 25 import org.apache.http.client.HttpClient; 26 import org.apache.http.client.entity.UrlEncodedFormEntity; 27 import org.apache.http.client.methods.HttpPost [all...] |
/external/libcups/cups/ |
ppd-util.c | 11 * missing or damaged, see the license at "http://www.cups.org/". 35 static int cups_get_printer_uri(http_t *http, const char *name, 87 cupsGetPPD2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ 96 if (cupsGetPPD3(http, name, &modtime, pg->ppd_filename, 127 http_status_t /* O - HTTP status */ 128 cupsGetPPD3(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ 137 http_t *http2; /* Alternate HTTP connection */ 143 http_status_t status; /* HTTP status from server */ 152 DEBUG_printf(("cupsGetPPD3(http=%p, name=\"%s\", modtime=%p(%d), buffer=%p, [all...] |
/external/syzkaller/syz-manager/ |
html.go | 13 "net/http" 14 _ "net/http/pprof" 32 http.HandleFunc("/", mgr.httpSummary) 33 http.HandleFunc("/syscalls", mgr.httpSyscalls) 34 http.HandleFunc("/corpus", mgr.httpCorpus) 35 http.HandleFunc("/crash", mgr.httpCrash) 36 http.HandleFunc("/cover", mgr.httpCover) 37 http.HandleFunc("/prio", mgr.httpPrio) 38 http.HandleFunc("/file", mgr.httpFile) 39 http.HandleFunc("/report", mgr.httpReport [all...] |
/external/python/oauth2client/oauth2client/ |
transport.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 49 """Return an HTTP object which caches results returned. 56 httplib2.Http, an HTTP object with a MemoryCache 62 """Return a new HTTP object. 65 httplib2.Http, an HTTP object. 67 return httplib2.Http() 131 def wrap_http_for_auth(credentials, http): 132 """Prepares an HTTP object's request method for auth [all...] |
/external/apache-http/src/org/apache/http/impl/conn/ |
DefaultClientConnectionOperator.java | 2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java $ 15 * http://www.apache.org/licenses/LICENSE-2.0 28 * <http://www.apache.org/>. 32 package org.apache.http.impl.conn; 40 import org.apache.http.HttpHost; 41 import org.apache.http.params.HttpParams; 42 import org.apache.http.params.HttpConnectionParams; 43 import org.apache.http.protocol.HttpContext; 45 import org.apache.http.conn.HttpHostConnectException [all...] |
/external/python/oauth2client/tests/contrib/django_util/ |
test_decorators.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 19 from django import http 55 return http.HttpResponse("test") # pragma: NO COVER 61 self.assertIsNone(request.oauth.http) 77 return http.HttpResponse('test') 83 self.assertIsNotNone(request.oauth.http) 101 return http.HttpResponse('hello world') # pragma: NO COVER 129 return http.HttpResponse('test') # pragma: NO COVER 132 self.assertIsInstance(response, http.HttpResponseRedirect) 139 http.HttpResponseRedirect.status_code [all...] |
/external/apache-http/src/org/apache/http/message/ |
AbstractHttpMessage.java | 2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/message/AbstractHttpMessage.java $ 15 * http://www.apache.org/licenses/LICENSE-2.0 28 * <http://www.apache.org/>. 32 package org.apache.http.message; 36 import org.apache.http.Header; 37 import org.apache.http.HeaderIterator; 38 import org.apache.http.HttpMessage; 39 import org.apache.http.params.HttpParams; 40 import org.apache.http.params.BasicHttpParams [all...] |
BasicHttpResponse.java | 2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/message/BasicHttpResponse.java $ 15 * http://www.apache.org/licenses/LICENSE-2.0 28 * <http://www.apache.org/>. 32 package org.apache.http.message; 36 import org.apache.http.HttpEntity; 37 import org.apache.http.HttpResponse; 38 import org.apache.http.ProtocolVersion; 39 import org.apache.http.StatusLine; 40 import org.apache.http.ReasonPhraseCatalog [all...] |
/external/apache-http/src/org/apache/http/util/ |
EntityUtils.java | 2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/util/EntityUtils.java $ 15 * http://www.apache.org/licenses/LICENSE-2.0 28 * <http://www.apache.org/>. 32 package org.apache.http.util; 39 import org.apache.http.HeaderElement; 40 import org.apache.http.HttpEntity; 41 import org.apache.http.NameValuePair; 42 import org.apache.http.ParseException; 43 import org.apache.http.protocol.HTTP [all...] |
/external/grpc-grpc/src/core/lib/http/ |
format_request.cc | 9 * http://www.apache.org/licenses/LICENSE-2.0 21 #include "src/core/lib/http/format_request.h" 35 gpr_strvec_add(buf, gpr_strdup(request->http.path)); 36 gpr_strvec_add(buf, gpr_strdup(" HTTP/1.0\r\n")); 37 /* just in case some crazy server really expects HTTP/1.1 */ 46 for (i = 0; i < request->http.hdr_count; i++) { 47 gpr_strvec_add(buf, gpr_strdup(request->http.hdrs[i].key)); 49 gpr_strvec_add(buf, gpr_strdup(request->http.hdrs[i].value)); 85 for (i = 0; i < request->http.hdr_count; i++) { 86 if (strcmp(request->http.hdrs[i].key, "Content-Type") == 0) [all...] |
/external/nanohttpd/webserver/src/test/java/fi/iki/elonen/ |
TestCorsHttpServerWithSingleOrigin.java | 43 import org.apache.http.HttpEntity; 44 import org.apache.http.client.methods.CloseableHttpResponse; 45 import org.apache.http.client.methods.HttpGet; 46 import org.apache.http.client.methods.HttpOptions; 47 import org.apache.http.impl.client.CloseableHttpClient; 48 import org.apache.http.impl.client.HttpClients; 78 "--cors=http://localhost:9090" 98 HttpOptions httpOption = new HttpOptions("http://localhost:9090/xxx/yyy.html"); 102 Assert.assertEquals("Cors should have added a header: Access-Control-Allow-Origin: http://localhost:9090", "http://localhost:9090" [all...] |
/external/oauth/core/src/main/java/net/oauth/client/ |
URLConnectionClient.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 28 import net.oauth.http.HttpClient; 29 import net.oauth.http.HttpMessage; 30 import net.oauth.http.HttpResponseMessage; 37 * of an HTTP response whose status code isn't 200 (OK), which can enable your 53 HttpURLConnection http = (HttpURLConnection) connection; local 54 http.setRequestMethod(httpMethod); 55 http.setInstanceFollowRedirects(false);
|
/external/robolectric-shadows/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/ |
DefaultRequestDirector.java | 13 * http://www.apache.org/licenses/LICENSE-2.0 26 * <http://www.apache.org/>. 40 import org.apache.http.ConnectionReuseStrategy; 41 import org.apache.http.Header; 42 import org.apache.http.HttpEntity; 43 import org.apache.http.HttpEntityEnclosingRequest; 44 import org.apache.http.HttpException; 45 import org.apache.http.HttpHost; 46 import org.apache.http.HttpRequest; 47 import org.apache.http.HttpResponse [all...] |
/external/syzkaller/vendor/google.golang.org/grpc/ |
proxy.go | 9 * http://www.apache.org/licenses/LICENSE-2.0 27 "net/http" 28 "net/http/httputil" 38 httpProxyFromEnvironment = http.ProxyFromEnvironment 42 req := &http.Request{ 58 // To read a response from a net.Conn, http.ReadResponse() takes a bufio.Reader. 79 req := (&http.Request{ 80 Method: http.MethodConnect, 86 return nil, fmt.Errorf("failed to write the HTTP request: %v", err) 90 resp, err := http.ReadResponse(r, req [all...] |
/external/apache-http/src/org/apache/http/impl/client/ |
DefaultRequestDirector.java | 2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java $ 15 * http://www.apache.org/licenses/LICENSE-2.0 28 * <http://www.apache.org/>. 32 package org.apache.http.impl.client; 45 import org.apache.http.ConnectionReuseStrategy; 46 import org.apache.http.Header; 47 import org.apache.http.HttpEntity; 48 import org.apache.http.HttpEntityEnclosingRequest; 49 import org.apache.http.HttpException [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
GetAndPostIntegrationTest.java | 44 import org.apache.http.HttpEntity; 45 import org.apache.http.HttpResponse; 46 import org.apache.http.NameValuePair; 47 import org.apache.http.client.ResponseHandler; 48 import org.apache.http.client.entity.UrlEncodedFormEntity; 49 import org.apache.http.client.methods.HttpGet; 50 import org.apache.http.client.methods.HttpPost; 51 import org.apache.http.entity.mime.HttpMultipartMode; 52 import org.apache.http.entity.mime.MultipartEntity; 53 import org.apache.http.entity.mime.content.StringBody [all...] |
/build/kati/testcase/ |
canned_recipes.mk | 0 # http://www.gnu.org/software/make/manual/make.html#Canned-Recipes
|