/external/libbrillo/brillo/http/ |
http_proxy_unittest.cc | 5 #include <brillo/http/http_proxy.h> 11 #include <brillo/http/http_transport.h> 23 constexpr char kTestUrl[] = "http://www.example.com/test"; 27 namespace http { namespace in namespace:brillo 127 EXPECT_THAT(proxies, ElementsAre("http://example.com", "socks5://foo.com", 139 "socks5://test.com", "http://foobar.com", 170 "http://foobar.com", kDirectProxy}; 179 } // namespace http
|
http_request.h | 18 #include <brillo/http/http_connection.h> 19 #include <brillo/http/http_transport.h> 22 namespace http { namespace in namespace:brillo 24 // HTTP request verbs 31 BRILLO_EXPORT extern const char kPatch[]; // Non-standard HTTP/1.1 verb 35 BRILLO_EXPORT extern const char kCopy[]; // Non-standard HTTP/1.1 verb 36 BRILLO_EXPORT extern const char kMove[]; // Non-standard HTTP/1.1 verb 39 // HTTP request header names 82 // HTTP response header names 115 // HTTP request status (error) code [all...] |
http_utils.h | 14 #include <brillo/http/http_form_data.h> 15 #include <brillo/http/http_request.h> 23 namespace http { namespace in namespace:brillo 28 // The following are simple utility helper functions for common HTTP operations 29 // that use http::Request object behind the scenes and set it up accordingly. 35 // "http://url", 41 // SendRequestAndBlock(brillo::http::request_type::kPost, 42 // "http://url", 45 // {{brillo::http::request_header::kAuthorization, 53 // Performs a generic HTTP request with binary data. Success status [all...] |
/external/nanohttpd/ |
README.md | 3 *NanoHTTPD* is a light-weight HTTP server designed for embedding in other applications, released under a Modified BSD licence. 13 We'll create a custom HTTP server project using Maven for build/dep system. This tutorial assumes you are using a Unix variant and a shell. First, install Maven and Java SDK if not already installed. Then run: 18 You should now have a HTTP file server running on <http://localhost:8080/>. 48 System.out.println( "\nRunning! Point your browers to http://localhost:8080/ \n" ); 79 If it started ok, point your browser at <http://localhost:8080/> and enjoy a web server that asks your name and replies with a greeting. 94 * `/core` ? Fully functional HTTP(s) server consisting of one (1) Java file, ready to be customized/inherited for your own project 108 * Only one Java file, providing HTTP 1.1 support. 113 * Some built-in support for HEAD, POST and DELETE requests. You can easily implement/customize any HTTP method, though. 124 * Default code serves files and shows (prints on console) all HTTP parameters and headers [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
Response.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 18 import com.squareup.okhttp.internal.http.OkHeaders; 22 import static com.squareup.okhttp.internal.http.StatusLine.HTTP_PERM_REDIRECT; 23 import static com.squareup.okhttp.internal.http.StatusLine.HTTP_TEMP_REDIRECT; 32 * An HTTP response. Instances of this class are not immutable: the response 64 * The wire-level request that initiated this HTTP response. This is not 67 * <li>It may be transformed by the HTTP client. For example, the client 69 * <li>It may be the request generated in response to an HTTP redirect or 79 * Returns the HTTP protocol, such as {@link Protocol#HTTP_1_1} or {@link 86 /** Returns the HTTP status code. * [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
CacheStrategy.java | 1 package com.squareup.okhttp.internal.http; 9 import static com.squareup.okhttp.internal.http.StatusLine.HTTP_PERM_REDIRECT; 10 import static com.squareup.okhttp.internal.http.StatusLine.HTTP_TEMP_REDIRECT; 69 // http://tools.ietf.org/html/rfc7234#section-3 109 * HTTP request was first initiated. 115 * HTTP response was first received. 257 // As recommended by the HTTP RFC and implemented in Firefox, the
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
Response.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 19 import com.android.okhttp.internal.http.OkHeaders; 23 import static com.android.okhttp.internal.http.StatusLine.HTTP_PERM_REDIRECT; 24 import static com.android.okhttp.internal.http.StatusLine.HTTP_TEMP_REDIRECT; 33 * An HTTP response. Instances of this class are not immutable: the response 71 * The wire-level request that initiated this HTTP response. This is not 74 * <li>It may be transformed by the HTTP client. For example, the client 76 * <li>It may be the request generated in response to an HTTP redirect or 86 * Returns the HTTP protocol, such as {@link Protocol#HTTP_1_1} or {@link 93 /** Returns the HTTP status code. * [all...] |
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/ |
CacheStrategy.java | 2 package com.android.okhttp.internal.http; 10 import static com.android.okhttp.internal.http.StatusLine.HTTP_PERM_REDIRECT; 11 import static com.android.okhttp.internal.http.StatusLine.HTTP_TEMP_REDIRECT; 71 // http://tools.ietf.org/html/rfc7234#section-3 114 * HTTP request was first initiated. 120 * HTTP response was first received. 262 // As recommended by the HTTP RFC and implemented in Firefox, the
|
/external/python/apitools/samples/storage_sample/ |
uploads_test.py | 8 # http://www.apache.org/licenses/LICENSE-2.0 152 self.__buffer, upload_data, self.__upload.http) 157 self.__buffer, upload_data, self.__upload.http) 165 self.__buffer, upload_data, self.__upload.http)
|
/external/syzkaller/vendor/golang.org/x/net/http/httpguts/ |
httplex.go | 173 // to http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2 178 // to http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2 186 // ValidHeaderFieldName reports whether v is a valid HTTP/1.x header name. 187 // HTTP/2 imposes the additional restriction that uppercase ASCII 212 // http://tools.ietf.org/html/rfc7230#section-5.4 216 // http://tools.ietf.org/html/rfc3986#section-3.2.2 266 // http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 : 274 // http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2 : 290 // http2 further says: "Similarly, HTTP/2 allows header field values
|
/external/libcups/cups/ |
dest.c | 11 * missing or damaged, see the license at "http://www.cups.org/". 233 static int cups_enum_dests(http_t *http, unsigned flags, int msec, int *cancel, cups_ptype_t type, cups_ptype_t mask, cups_dest_cb_t cb, void *user_data); 614 http_t *http; /* Connection to server */ local 724 * Create the HTTP object pointing to the server referenced by the URI... 732 http = httpConnect2(hostname, port, addrlist, AF_UNSPEC, encryption, 1, 0, NULL); 749 if (!httpReconnect2(http, msec, cancel) && cb) 760 return (http); 885 http_t *http; /* Connection to server */ local 896 if ((http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, HTTP_ENCRYPTION_IF_REQUESTED, 1, 30000, NULL)) == NULL) 911 response = cupsDoRequest(http, request, "/") [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
urlparse.py | 37 uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap',
41 uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
45 uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap',
53 uses_query = ['http', 'wais', 'imap', 'https', 'shttp', 'mms',
55 uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news',
184 if url[:i] == 'http': # optimize the common case
|
/external/python/cpython2/Lib/ |
urlparse.py | 37 uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap', 41 uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 45 uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap', 53 uses_query = ['http', 'wais', 'imap', 'https', 'shttp', 'mms', 55 uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news', 184 if url[:i] == 'http': # optimize the common case
|
/external/syzkaller/vendor/google.golang.org/appengine/datastore/ |
doc.go | 51 func handle(w http.ResponseWriter, r *http.Request) { 57 http.Error(w, err.Error(), 500) 65 http.Error(w, err.Error(), 500) 265 func handle(w http.ResponseWriter, r *http.Request) { 310 func handle(w http.ResponseWriter, r *http.Request) { 336 func handle(w http.ResponseWriter, r *http.Request) [all...] |
/external/syzkaller/dashboard/app/ |
api.go | 12 "net/http" 29 http.Handle("/api", handleJSON(handleAPI)) 51 type JSONHandler func(c context.Context, r *http.Request) (interface{}, error) 52 type APIHandler func(c context.Context, r *http.Request, payload []byte) (interface{}, error) 53 type APINamespaceHandler func(c context.Context, ns string, r *http.Request, payload []byte) (interface{}, error) 69 func handleJSON(fn JSONHandler) http.Handler { 70 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 78 http.Error(w, err.Error(), http.StatusInternalServerError [all...] |
/external/syzkaller/vendor/golang.org/x/net/http2/hpack/ |
hpack.go | 6 // efficiently representing HTTP header fields in the context of HTTP/2. 8 // See http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-09 62 // http://http2.github.io/http2-spec/compression.html#rfc.section.4.1 158 // http://http2.github.io/http2-spec/compression.html#rfc.section.2.3.2 302 // http://http2.github.io/http2-spec/compression.html#rfc.section.6.1 307 // http://http2.github.io/http2-spec/compression.html#rfc.section.6.2.1 312 // http://http2.github.io/http2-spec/compression.html#rfc.section.6.2.2 317 // http://http2.github.io/http2-spec/compression.html#rfc.section.6.2.3 322 // http://http2.github.io/http2-spec/compression.html#rfc.section.6. [all...] |
/external/syzkaller/vendor/google.golang.org/api/googleapi/ |
googleapi.go | 15 "net/http" 25 // http.DetectContentType. 38 // provides the HTTP status code and header sent by the server. 44 Header http.Header 63 // Code is the HTTP response status code and will always be populated. 72 Header http.Header 87 return fmt.Sprintf("googleapi: got HTTP response code %d with body: %v", e.Code, e.Body) 114 func CheckResponse(res *http.Response) error { 138 // server replying with http.StatusNotModified. 146 return ok && ae.Code == http.StatusNotModifie [all...] |
/external/autotest/client/site_tests/power_LoadTest/extension/ |
test.js | 69 var ping_url = 'http://localhost:8001/pagenav'; 202 // sanitize url, make http(s)://www.abc.com/d/e/f into www.abc.com 240 var log_url = 'http://localhost:8001/log'; 262 var status_url = 'http://localhost:8001/status'; 278 var pagetime_info_url = 'http://localhost:8001/pagetime';
|
/external/syzkaller/vendor/golang.org/x/net/http2/ |
client_conn_pool.go | 11 "net/http" 15 // ClientConnPool manages a pool of HTTP/2 client connections. 17 GetClientConn(req *http.Request, addr string) (*ClientConn, error) 46 func (p *clientConnPool) GetClientConn(req *http.Request, addr string) (*ClientConn, error) { 55 func (p *clientConnPool) getClientConn(req *http.Request, addr string, dialOnMiss bool) (*ClientConn, error) { 223 // a small race window with the HTTP/1 Transport's integration 250 // which never dials. We let the HTTP/1.1 client dial and use its TLS 254 func (p noDialClientConnPool) GetClientConn(req *http.Request, addr string) (*ClientConn, error) {
|
/external/syzkaller/vendor/golang.org/x/net/trace/ |
trace.go | 7 It exports HTTP interfaces on /debug/requests and /debug/events. 12 func fooHandler(w http.ResponseWriter, req *http.Request) { 24 The /debug/requests HTTP endpoint organizes the traces by family, 45 resp, err := http.Get("http://" + f.domain + "/" + path) 59 The /debug/events HTTP endpoint organizes the event logs by family and 72 "net/http" 97 var AuthRequest = func(req *http.Request) (any, sensitive bool) { 115 http.HandleFunc("/debug/requests", Traces [all...] |
/external/syzkaller/vendor/google.golang.org/appengine/aetest/ |
instance_vm.go | 12 "net/http" 58 apiURL *url.URL // base URL of API HTTP server 59 adminURL string // base URL of admin HTTP server 66 // NewRequest returns an *http.Request associated with this instance. 67 func (i *instance) NewRequest(method, urlStr string, body io.Reader) (*http.Request, error) { 68 req, err := http.NewRequest(method, urlStr, body) 108 res, err := http.Get(i.adminURL + "/quit")
|
/build/make/tools/droiddoc/templates-ndk/ |
sample.cs | 5 <body class="gc-documentation develop samples" itemscope itemtype="http://schema.org/Article"> 96 itemscope itemtype="http://schema.org/SiteNavigationElement"> 131 <div class="layout-content-row content-footer next-class" style="display:none" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
sampleindex.cs | 5 <body class="gc-documentation develop samples" itemscope itemtype="http://schema.org/Article"> 86 itemscope itemtype="http://schema.org/SiteNavigationElement"> 121 <div class="layout-content-row content-footer next-class" style="display:none" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
/build/soong/cmd/javac_wrapper/ |
javac_wrapper_test.go | 7 // http://www.apache.org/licenses/LICENSE-2.0 48 in: " (see http://go/errorprone/bugpattern/RectIntersectReturnValueIgnored.md)\n", 49 out: " (see http://go/errorprone/bugpattern/RectIntersectReturnValueIgnored.md)\n",
|
/external/doclava/res/assets/templates-sdk/ |
sample.cs | 5 <body class="gc-documentation develop samples" itemscope itemtype="http://schema.org/Article"> 91 itemscope itemtype="http://schema.org/SiteNavigationElement"> 126 <div class="content-footer next-class" style="display:none" itemscope itemtype="http://schema.org/SiteNavigationElement">
|