Home
last modified time | relevance | path

Searched full:url (Results 1 – 25 of 6833) sorted by relevance

12345678910>>...274

/external/rust/crates/url/src/
Dquirks.rs1 // Copyright 2016 The rust-url developers.
9 //! Getters and setters for URL components implemented per https://url.spec.whatwg.org/#api
12 //! you probably want to use `Url` method instead.
15 use crate::{Host, ParseError, Position, Url};
17 /// https://url.spec.whatwg.org/#dom-url-domaintoascii
25 /// https://url.spec.whatwg.org/#dom-url-domaintounicode
36 /// Getter for https://url.spec.whatwg.org/#dom-url-href
37 pub fn href(url: &Url) -> &str { in href()
38 url.as_str() in href()
41 /// Setter for https://url.spec.whatwg.org/#dom-url-href
[all …]
Dlib.rs1 // Copyright 2013-2015 The rust-url developers.
11 rust-url is an implementation of the [URL Standard](http://url.spec.whatwg.org/)
15 # URL parsing and data structures
17 First, URL parsing may fail for various reasons and therefore returns a `Result`.
20 use url::{Url, ParseError};
22 assert!(Url::parse("http://[:::1]") == Err(ParseError::InvalidIpv6Address))
25 Let’s parse a valid URL and look at its components.
28 use url::{Url, Host, Position};
29 # use url::ParseError;
31 let issue_list_url = Url::parse(
[all …]
Dpath_segments.rs1 // Copyright 2016 The rust-url developers.
10 use crate::Url;
13 /// Exposes methods to manipulate the path of an URL that is not cannot-be-base.
21 /// use url::Url;
25 /// let mut url = Url::parse("mailto:me@example.com")?;
26 /// assert!(url.path_segments_mut().is_err());
28 /// let mut url = Url::parse("http://example.net/foo/index.html")?;
29 /// url.path_segments_mut().map_err(|_| "cannot be base")?
31 /// assert_eq!(url.as_str(), "http://example.net/foo/img/2%2F100%25.png");
38 url: &'a mut Url, field
[all …]
/external/libbrillo/brillo/
Durl_utils_test.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.cc10 // Given a URL string, determine where the query string starts and ends.
13 // have a query string that is separated from the path by '?'. Finally, the URL
14 // could also have a '#'-separated URL fragment which is usually used by the
18 // http://server.com/path/to/object - is the URL of the object,
19 // ?k=v&foo=bar - URL query string
20 // #fragment - URL fragment string
24 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()
[all …]
/external/oboe/docs/reference/
Dmenudata.js25 {text:"Main Page",url:"index.html"}, property
26 {text:"Related Pages",url:"pages.html"}, property
27 {text:"Namespaces",url:"namespaces.html",children:[ property
28 {text:"Namespace List",url:"namespaces.html"}, property
29 {text:"Namespace Members",url:"namespacemembers.html",children:[ property
30 {text:"All",url:"namespacemembers.html",children:[ property
31 {text:"a",url:"namespacemembers.html#index_a"}, property
32 {text:"c",url:"namespacemembers.html#index_c"}, property
33 {text:"d",url:"namespacemembers.html#index_d"}, property
34 {text:"g",url:"namespacemembers.html#index_g"}, property
[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/rust/crates/url/tests/
Dunit.rs1 // Copyright 2013-2014 The rust-url developers.
15 use url::{form_urlencoded, Host, Origin, Url};
20 assert_eq!(size_of::<Url>(), size_of::<Option<Url>>()); in size()
25 let base: Url = "sc://%C3%B1".parse().unwrap(); in test_relative()
26 let url = base.join("/resources/testharness.js").unwrap(); in test_relative() localVariable
27 assert_eq!(url.as_str(), "sc://%C3%B1/resources/testharness.js"); in test_relative()
32 let base: Url = "sc://%C3%B1".parse().unwrap(); in test_relative_empty()
33 let url = base.join("").unwrap(); in test_relative_empty() localVariable
34 assert_eq!(url.as_str(), "sc://%C3%B1"); in test_relative_empty()
39 let mut base: Url = "moz://foo:bar@servo/baz".parse().unwrap(); in test_set_empty_host()
[all …]
Ddata.rs1 // Copyright 2013-2014 The rust-url developers.
15 use url::{quirks, Url};
19 // Copied form https://github.com/w3c/web-platform-tests/blob/master/url/ in urltestdata()
33 let base = match Url::parse(&base) { in urltestdata()
47 let url = match (base.join(&input), failure) { in urltestdata() localVariable
48 (Ok(url), false) => url, in urltestdata()
53 &format!("parse URL for {:?}", input), in urltestdata()
61 format!(" failed: expected parse error for URL {:?}", input), in urltestdata()
62 &format!("parse URL for {:?}", input), in urltestdata()
70 passed &= check_invariants(&url, &format!("invariants for {:?}", input), None); in urltestdata()
[all …]
/external/angle/third_party/vulkan_memory_allocator/docs/html/
Dmenudata.js26 {text:"Main Page",url:"index.html"}, property
27 {text:"Related Pages",url:"pages.html"}, property
28 {text:"Classes",url:"annotated.html",children:[ property
29 {text:"Class List",url:"annotated.html"}, property
30 {text:"Class Index",url:"classes.html"}, property
31 {text:"Class Members",url:"functions.html",children:[ property
32 {text:"All",url:"functions.html",children:[ property
33 {text:"a",url:"functions.html#index_a"}, property
34 {text:"b",url:"functions.html#index_b"}, property
35 {text:"c",url:"functions.html#index_c"}, property
[all …]
/external/guava/android/guava/src/com/google/common/io/
DResources.java29 import java.net.URL;
35 * methods use {@link URL} parameters, they are usually not appropriate for HTTP or other
51 * Returns a {@link ByteSource} that reads from the given URL.
55 public static ByteSource asByteSource(URL url) { in asByteSource() argument
56 return new UrlByteSource(url); in asByteSource()
59 /** A byte source that reads from a URL using {@link URL#openStream()}. */
62 private final URL url; field in Resources.UrlByteSource
64 private UrlByteSource(URL url) { in UrlByteSource() argument
65 this.url = checkNotNull(url); in UrlByteSource()
70 return url.openStream(); in openStream()
[all …]
/external/guava/guava/src/com/google/common/io/
DResources.java29 import java.net.URL;
35 * methods use {@link URL} parameters, they are usually not appropriate for HTTP or other
51 * Returns a {@link ByteSource} that reads from the given URL.
55 public static ByteSource asByteSource(URL url) { in asByteSource() argument
56 return new UrlByteSource(url); in asByteSource()
59 /** A byte source that reads from a URL using {@link URL#openStream()}. */
62 private final URL url; field in Resources.UrlByteSource
64 private UrlByteSource(URL url) { in UrlByteSource() argument
65 this.url = checkNotNull(url); in UrlByteSource()
70 return url.openStream(); in openStream()
[all …]
/external/libwebsockets/test-apps/android/app/
Dapp.iml27 <output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
28 <output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/debug" />
30 <content url="file://$MODULE_DIR$">
31 …<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" genera…
32 …<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" gen…
33 …<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="fal…
34 …<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" gener…
35 <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
36 …<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" />
37 …<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="t…
[all …]
/external/python/cpython2/Lib/
Durlparse.py8 RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter
14 RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zwinski, July 1998.
19 RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M.
137 def urlparse(url, scheme='', allow_fragments=True): argument
138 """Parse a URL into 6 components:
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)
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DRequest.java21 import java.net.URL;
29 private final HttpUrl url; field in Request
35 private volatile URL javaNetUrl; // Lazily initialized.
40 this.url = builder.url; in Request()
48 return url; in httpUrl()
51 public URL url() { in url() method in Request
52 URL result = javaNetUrl; in url()
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()
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DRequest.java22 import java.net.URL;
32 private final HttpUrl url; field in Request
40 private volatile URL javaNetUrl; // Lazily initialized.
45 this.url = builder.url; in Request()
53 return url; in httpUrl()
56 public URL url() { in url() method in Request
57 URL result = javaNetUrl; in url()
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()
[all …]
/external/openscreen/util/
Durl.cc5 #include "util/url.h"
16 Url::Url(const std::string& source) { in Url() function in openscreen::Url
19 const char* url = source.c_str(); in Url() local
26 if (!ExtractScheme(url, url_length, &scheme)) { in Url()
30 if (CompareSchemeComponent(url, scheme, kFileScheme) || in Url()
31 CompareSchemeComponent(url, scheme, kFileSystemScheme) || in Url()
32 CompareSchemeComponent(url, scheme, kMailtoScheme)) { in Url()
35 } else if (IsStandard(url, scheme)) { in Url()
36 ParseStandardURL(url, url_length, &parsed); in Url()
41 ParsePathURL(url, url_length, true, &parsed); in Url()
[all …]
/external/python/cpython3/Lib/urllib/
Dparse.py8 RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter
14 RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998.
19 RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M.
245 _DefragResultBase = namedtuple('DefragResult', 'url fragment')
252 DefragResult(url, fragment)
254 A 2-tuple that contains the url without fragment identifier and the fragment
258 _DefragResultBase.url.__doc__ = """The URL with no fragment identifier."""
261 Fragment identifier separated from URL, that allows indirect identification of a
269 A 5-tuple that contains the different components of a URL. Similar to
273 _SplitResultBase.scheme.__doc__ = """Specifies URL scheme for the request."""
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DURLClassLoaderTest.java25 import java.net.URL;
64 public URL getResource(String res) { in getResource()
66 return new URL("http://test/BogusClassLoader"); in getResource()
75 public URLClassLoaderExt(URL[] urls) { in URLClassLoaderExt()
85 * @tests java.net.URLClassLoader#URLClassLoader(java.net.URL[])
88 URL[] u = new URL[0]; in test_Constructor$Ljava_net_URL()
94 URLClassLoader loader = new URLClassLoader(new URL[] { null }); in test_Constructor$Ljava_net_URL()
104 * @tests java.net.URLClassLoader#URLClassLoader(java.net.URL[],
109 URL[] u = new URL[0]; in test_Constructor$Ljava_net_URLLjava_lang_ClassLoader()
111 URL res = ucl.getResource("J"); in test_Constructor$Ljava_net_URLLjava_lang_ClassLoader()
[all …]
/external/curl/docs/libcurl/
Dcurl_url_set.325 curl_url_set - set a URL part
29 CURLUcode curl_url_set(CURLU *url,
35 Given the \fIurl\fP handle of an already parsed URL, this function lets the
38 The \fIpart\fP argument should identify the particular URL part (see list
40 string with the new contents for that URL part. The contents should be in the
41 form and encoding they'd use in a URL: URL encoded.
49 Allows the full URL of the handle to be replaced. If the handle already is
50 populated with a URL, the new URL can be relative to the previous.
52 When successfully setting a new URL, relative or absolute, the handle contents
53 will be replaced with the information of the newly set URL.
[all …]
/external/python/cpython2/Tools/webchecker/
Dwebchecker.py4 # including code to check URL fragments.
13 File URL extension:
65 it based on the URL's suffix. The mimetypes.py module (also in this
100 rooturl -- URL to start checking
132 DEFROOT = "file:/usr/local/etc/httpd/htdocs/" # Default root URL
310 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)
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/model/
DGlideUrl.java7 import java.net.URL;
11 * unnecessary URL instantiations for loaders that require only string urls rather than URL objects.
18 …* To obtain a properly escaped URL, call {@link #toURL()}. To obtain a properly escaped string…
19 * {@link #toURL()} and then {@link java.net.URL#toString()}.
25 private final URL url; field in GlideUrl
28 private URL safeUrl;
30 public GlideUrl(URL url) { in GlideUrl() argument
31 if (url == null) { in GlideUrl()
32 throw new IllegalArgumentException("URL must not be null!"); in GlideUrl()
34 this.url = url; in GlideUrl()
[all …]
/external/python/setuptools/setuptools/
Dpackage_index.py55 "Not a URL, existing file, or requirement spec: %r" % (spec,)
83 def egg_info_for_url(url): argument
84 parts = urllib.parse.urlparse(url)
94 def distros_for_url(url, metadata=None): argument
95 """Yield egg or source distribution objects that might be found at a URL"""
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)))
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
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 …]
/external/skia/tools/skp/page_sets/other/
DOLD-skia_nexus10_set.json8 "url": "http://game.deksiam.in.th/", string
13 "url": "http://www.sahadan.com/default.aspx", string
18 "url": "http://techmeme.com/", string
23 "url": "http://www.cnet.com/", string
28 …"url": "http://www.androidpolice.com/2012/10/03/rumor-evidence-mounts-that-an-lg-optimus-g-nexus-i… string
33 "url": "http://br.337.com/pages/196/DDTank", string
38 "url": "http://www.cnn.com/2012/10/03/politics/michelle-obama-debate/index.html", string
43 "url": "http://culturalsolutions.co.uk/", string
48 "url": "http://cuteoverload.com/", string
53 "url": "http://digg.com/", string
[all …]

12345678910>>...274