Home
last modified time | relevance | path

Searched refs:url (Results 1 – 25 of 2042) sorted by relevance

12345678910>>...82

/external/libbrillo/brillo/
Durl_utils_unittest.cc13 url::Combine("http://sample.org", "path")); in TEST()
15 url::Combine("http://sample.org/", "path")); in TEST()
16 EXPECT_EQ("path1/path2", url::Combine("", "path1/path2")); in TEST()
17 EXPECT_EQ("path1/path2", url::Combine("path1", "path2")); in TEST()
18 EXPECT_EQ("http://sample.org", url::Combine("http://sample.org", "")); in TEST()
20 url::Combine("http://sample.org/", "/path")); in TEST()
22 url::Combine("http://sample.org", "//////path")); in TEST()
23 EXPECT_EQ("http://sample.org/", url::Combine("http://sample.org", "///")); in TEST()
25 url::Combine("http://sample.org/obj", "path1/path2")); in TEST()
27 url::Combine("http://sample.org/obj#tag", "path1/path2")); in TEST()
[all …]
Durl_utils.cc24 bool GetQueryStringPos(const std::string& url, in GetQueryStringPos() argument
28 size_t query_start = url.find_first_of("?#"); in GetQueryStringPos()
30 *query_pos = url.size(); in GetQueryStringPos()
38 size_t query_end = url.size(); in GetQueryStringPos()
41 if (url[query_start] == '?') { in GetQueryStringPos()
42 size_t pos_fragment = url.find('#', query_start); in GetQueryStringPos()
57 std::string url::TrimOffQueryString(std::string* url) { in TrimOffQueryString() argument
59 if (!GetQueryStringPos(*url, false, &query_pos, nullptr)) in TrimOffQueryString()
61 std::string query_string = url->substr(query_pos); in TrimOffQueryString()
62 url->resize(query_pos); in TrimOffQueryString()
[all …]
/external/tinyxml2/docs/
Dmenudata.js2 {text:"Main Page",url:"index.html"}, property
3 {text:"Related Pages",url:"pages.html"}, property
4 {text:"Classes",url:"annotated.html",children:[ property
5 {text:"Class List",url:"annotated.html"}, property
6 {text:"Class Index",url:"classes.html"}, property
7 {text:"Class Hierarchy",url:"hierarchy.html"}, property
8 {text:"Class Members",url:"functions.html",children:[ property
9 {text:"All",url:"functions.html",children:[ property
10 {text:"a",url:"functions.html#index_a"}, property
11 {text:"b",url:"functions.html#index_b"}, property
[all …]
/external/webrtc/webrtc/base/
Dhttpcommon_unittest.cc24 Url<char> url(TEST_URL); in TEST() local
25 EXPECT_TRUE(url.valid()); in TEST()
26 EXPECT_FALSE(url.secure()); in TEST()
27 EXPECT_STREQ(TEST_HOST, url.host().c_str()); in TEST()
28 EXPECT_EQ(80, url.port()); in TEST()
29 EXPECT_STREQ(TEST_PATH, url.path().c_str()); in TEST()
30 EXPECT_STREQ(TEST_QUERY, url.query().c_str()); in TEST()
31 EXPECT_STREQ(TEST_HOST, url.address().c_str()); in TEST()
32 EXPECT_STREQ(TEST_PATH TEST_QUERY, url.full_path().c_str()); in TEST()
33 EXPECT_STREQ(TEST_URL, url.url().c_str()); in TEST()
[all …]
/external/python/cpython2/Lib/
Durlparse.py137 def urlparse(url, scheme='', allow_fragments=True): argument
143 tuple = urlsplit(url, scheme, allow_fragments)
144 scheme, netloc, url, query, fragment = tuple
145 if scheme in uses_params and ';' in url:
146 url, params = _splitparams(url)
149 return ParseResult(scheme, netloc, url, params, query, fragment)
151 def _splitparams(url): argument
152 if '/' in url:
153 i = url.find(';', url.rfind('/'))
155 return url, ''
[all …]
Durllib.py72 def urlopen(url, data=None, proxies=None, context=None): argument
87 return opener.open(url)
89 return opener.open(url, data)
90 def urlretrieve(url, filename=None, reporthook=None, data=None, context=None): argument
98 return opener.retrieve(url, filename, reporthook, data)
193 urltype, url = splittype(fullurl)
200 url = (host, fullurl) # Signal special case to open_*()
213 return getattr(self, name)(url)
215 return getattr(self, name)(url, data)
221 type, url = splittype(fullurl)
[all …]
/external/python/cpython3/Lib/urllib/
Dparse.py250 _DefragResultBase.url.__doc__ = """The URL with no fragment identifier."""
314 return self.url + '#' + self.fragment
316 return self.url
333 return self.url + b'#' + self.fragment
335 return self.url
361 def urlparse(url, scheme='', allow_fragments=True): argument
367 url, scheme, _coerce_result = _coerce_args(url, scheme)
368 splitresult = urlsplit(url, scheme, allow_fragments)
369 scheme, netloc, url, query, fragment = splitresult
370 if scheme in uses_params and ';' in url:
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DHttpUrlTest.java486 HttpUrl url = HttpUrl.parse("http://host/#Σ"); in fragmentNonAscii() local
487 assertEquals("http://host/#Σ", url.toString()); in fragmentNonAscii()
488 assertEquals("Σ", url.fragment()); in fragmentNonAscii()
489 assertEquals("Σ", url.encodedFragment()); in fragmentNonAscii()
490 assertEquals("http://host/#Σ", url.uri().toString()); in fragmentNonAscii()
494 HttpUrl url = HttpUrl.parse("http://host/#\u0080"); in fragmentNonAsciiThatOffendsJavaNetUri() local
495 assertEquals("http://host/#\u0080", url.toString()); in fragmentNonAsciiThatOffendsJavaNetUri()
496 assertEquals("\u0080", url.fragment()); in fragmentNonAsciiThatOffendsJavaNetUri()
497 assertEquals("\u0080", url.encodedFragment()); in fragmentNonAsciiThatOffendsJavaNetUri()
498 assertEquals(new URI("http://host/#"), url.uri()); // Control characters may be stripped! in fragmentNonAsciiThatOffendsJavaNetUri()
[all …]
DCacheTest.java176 .url(server.url("/")) in assertCached()
219 Request request = new Request.Builder().url(server.url("/")).build(); in testResponseCaching()
256 Request request = new Request.Builder().url(server.url("/")).build(); in secureResponseCaching()
295 Request request = new Request.Builder().url(server.url("/")).build(); in responseCachingAndRedirects()
317 Request request1 = new Request.Builder().url(server.url("/foo")).build(); in redirectToCachedResult()
324 Request request2 = new Request.Builder().url(server.url("/bar")).build(); in redirectToCachedResult()
332 Request request3 = new Request.Builder().url(server.url("/baz")).build(); in redirectToCachedResult()
357 Response response1 = get(server.url("/")); in secureResponseCachingAndRedirects()
362 Response response2 = get(server.url("/")); in secureResponseCachingAndRedirects()
392 .addHeader("Location: " + server2.url("/"))); in secureResponseCachingAndProtocolRedirects()
[all …]
DCallTest.java114 .url(server.url("/")) in get()
134 HttpUrl httpUrl = server.url("/"); in buildRequestUsingHttpUrl()
136 .url(httpUrl) in buildRequestUsingHttpUrl()
146 requestBuilder.url("ftp://hostname/path"); in invalidScheme()
156 requestBuilder.url("http://localhost:65536/"); in invalidPort()
167 .url(server.url("/")) in getReturns500()
196 .url(server.url("/")) in repeatedHeaderNames()
233 .url(server.url("/")) in head()
268 .url(server.url("/")) in post()
302 .url(server.url("/")) in postZeroLength()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DRequest.java29 private final HttpUrl url; field in Request
40 this.url = builder.url; in Request()
48 return url; in httpUrl()
51 public URL url() { in url() method in Request
53 return result != null ? result : (javaNetUrl = url.url()); in url()
59 return result != null ? result : (javaNetUri = url.uri()); in uri()
66 return url.toString(); in urlString()
107 return url.isHttps(); in isHttps()
114 + url in toString()
121 private HttpUrl url; field in Request.Builder
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DRequest.java32 private final HttpUrl url; field in Request
45 this.url = builder.url; in Request()
53 return url; in httpUrl()
56 public URL url() { in url() method in Request
58 return result != null ? result : (javaNetUrl = url.url()); in url()
64 return result != null ? result : (javaNetUri = url.uri()); in uri()
71 return url.toString(); in urlString()
112 return url.isHttps(); in isHttps()
119 + url in toString()
129 private HttpUrl url; field in Request.Builder
[all …]
/external/python/cpython2/Tools/webchecker/
Dwebchecker.py310 for url in self.bad.keys():
311 self.markerror(url)
331 url = urlparse.urljoin(root, "/robots.txt")
333 self.note(2, "Parsing %s", url)
335 rp.set_url(url)
339 self.note(1, "I/O error parsing %s: %s", url, msg)
348 for url in urls:
349 self.dopage(url)
383 for url, rawlink, msg in triples:
384 if rawlink != self.format_url(url): s = " (%s)" % rawlink
[all …]
/external/skqp/tools/skiaserve/urlhandlers/
DUrlHandler.h18 virtual bool canHandle(const char* method, const char* url) = 0;
20 const char* url, const char* method,
26 bool canHandle(const char* method, const char* url) override;
28 const char* url, const char* method,
34 bool canHandle(const char* method, const char* url) override;
36 const char* url, const char* method,
42 bool canHandle(const char* method, const char* url) override;
44 const char* url, const char* method,
54 bool canHandle(const char* method, const char* url) override;
56 const char* url, const char* method,
[all …]
/external/skia/tools/skiaserve/urlhandlers/
DUrlHandler.h18 virtual bool canHandle(const char* method, const char* url) = 0;
20 const char* url, const char* method,
26 bool canHandle(const char* method, const char* url) override;
28 const char* url, const char* method,
34 bool canHandle(const char* method, const char* url) override;
36 const char* url, const char* method,
42 bool canHandle(const char* method, const char* url) override;
44 const char* url, const char* method,
54 bool canHandle(const char* method, const char* url) override;
56 const char* url, const char* method,
[all …]
/external/python/setuptools/setuptools/
Dpackage_index.py83 def egg_info_for_url(url): argument
84 parts = urllib.parse.urlparse(url)
94 def distros_for_url(url, metadata=None): argument
96 base, fragment = egg_info_for_url(url)
97 for dist in distros_for_location(url, base, metadata):
103 url, match.group(1), metadata, precedence=CHECKOUT_DIST
220 def find_external_links(url, page): argument
228 yield urllib.parse.urljoin(url, htmldecode(match.group(1)))
235 yield urllib.parse.urljoin(url, htmldecode(match.group(1)))
275 def from_url(cls, url): argument
[all …]
/external/guava/guava/src/com/google/common/io/
DResources.java55 public static ByteSource asByteSource(URL url) { in asByteSource() argument
56 return new UrlByteSource(url); in asByteSource()
64 private final URL url; field in Resources.UrlByteSource
66 private UrlByteSource(URL url) { in UrlByteSource() argument
67 this.url = checkNotNull(url); in UrlByteSource()
72 return url.openStream(); in openStream()
77 return "Resources.asByteSource(" + url + ")"; in toString()
87 public static CharSource asCharSource(URL url, Charset charset) { in asCharSource() argument
88 return asByteSource(url).asCharSource(charset); in asCharSource()
98 public static byte[] toByteArray(URL url) throws IOException { in toByteArray() argument
[all …]
/external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/transport/
DTransport.java53 protected String url; field in Transport
79 public Transport(String url) { in Transport() argument
80 this(null, url); in Transport()
83 public Transport(String url, int timeout) { in Transport() argument
84 this.url = url; in Transport()
88 public Transport(String url, int timeout, int bufferLength) { in Transport() argument
89 this.url = url; in Transport()
105 public Transport(Proxy proxy, String url) { in Transport() argument
107 this.url = url; in Transport()
110 public Transport(Proxy proxy, String url, int timeout) { in Transport() argument
[all …]
/external/python/cpython2/Doc/tools/static/
Dswitchers.js57 var url = urls.shift();
59 window.location.href = url;
63 url: url, property
65 window.location.href = url;
75 var url = window.location.href;
76 var current_language = language_segment_from_url(url);
77 var current_version = version_segment_in_url(url);
78 var new_url = url.replace('.org/' + current_language + current_version,
80 if (new_url != url) {
83 url.replace('.org/' + current_language + current_version,
[all …]
/external/python/cpython3/Lib/test/
Dtest_robotparser.py21 def get_agent_and_url(self, url): argument
22 if isinstance(url, tuple):
23 agent, url = url
24 return agent, url
25 return self.agent, url
28 for url in self.good:
29 agent, url = self.get_agent_and_url(url)
30 with self.subTest(url=url, agent=agent):
31 self.assertTrue(self.parser.can_fetch(agent, url))
34 for url in self.bad:
[all …]
/external/python/cpython3/Doc/tools/static/
Dswitchers.js64 var url = urls.shift();
66 window.location.href = url;
70 url: url, property
72 window.location.href = url;
82 var url = window.location.href;
83 var current_language = language_segment_from_url(url);
84 var current_version = version_segment_in_url(url);
85 var new_url = url.replace('.org/' + current_language + current_version,
87 if (new_url != url) {
90 url.replace('.org/' + current_language + current_version,
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowCookieManagerTest.java12 private final String url = "robolectric.org/"; field in ShadowCookieManagerTest
26 String url = "http://www.google.com"; in shouldSetAndGetACookie() local
28 cookieManager.setCookie(url, value); in shouldSetAndGetACookie()
29 assertThat(cookieManager.getCookie(url)).isEqualTo(value); in shouldSetAndGetACookie()
96 cookieManager.setCookie(url, "name=value; Expires=Wed, 09 Jun 2021 10:18:14 GMT"); in shouldHaveCookieWhenCookieIsSet()
107 assertThat(cookieManager.getCookie(url)).isNull(); in shouldGetNullWhenCookieIsNotPresent()
125 assertThat(cookieManager.getCookie(url)).isEqualTo("name=value"); in shouldSetWithHttpAndGetWithoutHttp()
136 cookieManager.setCookie(url, "name=value; Expires=Wed, 09 Jun 2021 10:18:14 GMT"); in shouldSetTwoCookies()
137 cookieManager.setCookie(url, "name2=value2; Expires=Wed, 09 Jun 2021 10:18:14 GMT"); in shouldSetTwoCookies()
138 assertThat(cookieManager.getCookie(url)).isEqualTo("name=value; name2=value2"); in shouldSetTwoCookies()
[all …]
/external/python/cpython2/Lib/test/
Dtest_robotparser.py24 def get_agent_and_url(self, url): argument
25 if isinstance(url, tuple):
26 agent, url = url
27 return agent, url
28 return self.agent, url
31 for url in self.good:
32 agent, url = self.get_agent_and_url(url)
33 self.assertTrue(self.parser.can_fetch(agent, url))
36 for url in self.bad:
37 agent, url = self.get_agent_and_url(url)
[all …]
/external/libbrillo/brillo/http/
Dhttp_utils.cc24 std::unique_ptr<Response> GetAndBlock(const std::string& url, in GetAndBlock() argument
29 request_type::kGet, url, headers, transport, error); in GetAndBlock()
32 RequestID Get(const std::string& url, in Get() argument
38 url, in Get()
45 std::unique_ptr<Response> HeadAndBlock(const std::string& url, in HeadAndBlock() argument
49 request_type::kHead, url, {}, transport, error); in HeadAndBlock()
52 RequestID Head(const std::string& url, in Head() argument
57 url, in Head()
64 std::unique_ptr<Response> PostTextAndBlock(const std::string& url, in PostTextAndBlock() argument
71 url, data.data(), data.size(), mime_type, headers, transport, error); in PostTextAndBlock()
[all …]
/external/toybox/toys/pending/
Dwget.c29 static unsigned get_hn(const char *url, char *hostname) {
32 for (i = 0; url[i] != '\0' && url[i] != ':' && url[i] != '/'; i++) {
34 hostname[i] = url[i];
42 static unsigned get_port(const char *url, char *port, unsigned url_i) { in get_port() argument
45 for (i = 0; url[i] != '\0' && url[i] != '/'; i++, url_i++) { in get_port()
46 if('0' <= url[i] && url[i] <= '9') port[i] = url[i]; in get_port()
56 static void get_info(const char *url, char* hostname, char *port, char *path) { in get_info() argument
59 if (strncmp(url, "http://", i)) error_exit("only HTTP support"); in get_info()
60 len = get_hn(url+i, hostname); in get_info()
64 if (url[i] == ':') { in get_info()
[all …]

12345678910>>...82