Home
last modified time | relevance | path

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

12345678910>>...506

/external/tensorflow/tensorflow/core/data/service/
Durl_test.cc15 #include "tensorflow/core/data/service/url.h"
24 URL url("localhost"); in TEST() local
25 EXPECT_EQ(url.host(), "localhost"); in TEST()
26 EXPECT_FALSE(url.has_port()); in TEST()
30 URL url("http://localhost"); in TEST() local
31 EXPECT_EQ(url.host(), "http://localhost"); in TEST()
32 EXPECT_FALSE(url.has_port()); in TEST()
36 URL url("localhost:1234"); in TEST() local
37 EXPECT_EQ(url.host(), "localhost"); in TEST()
38 EXPECT_TRUE(url.has_port()); in TEST()
[all …]
/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 /// Internal components / offsets of a URL.
42 /// Internal component / parsed offsets of the URL.
45 /// for the URL.
47 pub fn internal_components(url: &Url) -> InternalComponents { in internal_components()
49 scheme_end: url.scheme_end, in internal_components()
50 username_end: url.username_end, in internal_components()
[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/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 …]
/external/cronet/url/
Durl_constants.h12 namespace url {
14 COMPONENT_EXPORT(URL) extern const char kAboutBlankURL[];
15 COMPONENT_EXPORT(URL) extern const char16_t kAboutBlankURL16[];
16 COMPONENT_EXPORT(URL) extern const char kAboutSrcdocURL[];
17 COMPONENT_EXPORT(URL) extern const char16_t kAboutSrcdocURL16[];
19 COMPONENT_EXPORT(URL) extern const char kAboutBlankPath[];
20 COMPONENT_EXPORT(URL) extern const char16_t kAboutBlankPath16[];
21 COMPONENT_EXPORT(URL) extern const char kAboutSrcdocPath[];
22 COMPONENT_EXPORT(URL) extern const char16_t kAboutSrcdocPath16[];
24 COMPONENT_EXPORT(URL) extern const char kAboutScheme[];
[all …]
Durl_parse_perftest.cc9 #include "url/gurl.h"
10 #include "url/third_party/mozilla/url_parse.h"
11 #include "url/url_canon.h"
12 #include "url/url_canon_stdstring.h"
20 url::Parsed parsed; in TEST()
24 url::ParseStandardURL(kUrl.data(), kUrl.size(), &parsed); in TEST()
30 "search?q=url+parsing&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:"
42 url::Parsed parsed1; in TEST()
43 url::Parsed parsed2; in TEST()
44 url::Parsed parsed3; in TEST()
[all …]
/external/bazelbuild-rules_license/licenses/spdx/
DBUILD72 url = "https://spdx.org/licenses/0BSD.html",
78 url = "https://spdx.org/licenses/AAL.html",
84 url = "https://spdx.org/licenses/Abstyles.html",
90 url = "https://spdx.org/licenses/Adobe-2006.html",
96 url = "https://spdx.org/licenses/Adobe-Glyph.html",
102 url = "https://spdx.org/licenses/ADSL.html",
108 url = "https://spdx.org/licenses/AFL-1.1.html",
114 url = "https://spdx.org/licenses/AFL-1.2.html",
120 url = "https://spdx.org/licenses/AFL-2.0.html",
126 url = "https://spdx.org/licenses/AFL-2.1.html",
[all …]
/external/cronet/net/third_party/quiche/src/quiche/quic/tools/
Dquic_url_test.cc20 QuicUrl url(url_str); in TEST_F() local
21 EXPECT_FALSE(url.IsValid()); in TEST_F()
25 url = QuicUrl(url_str); in TEST_F()
26 EXPECT_TRUE(url.IsValid()); in TEST_F()
27 EXPECT_EQ("http://www.example.com/", url.ToString()); in TEST_F()
28 EXPECT_EQ("http", url.scheme()); in TEST_F()
29 EXPECT_EQ("www.example.com", url.HostPort()); in TEST_F()
30 EXPECT_EQ("/", url.PathParamsQuery()); in TEST_F()
31 EXPECT_EQ(80u, url.port()); in TEST_F()
35 url = QuicUrl(url_str); in TEST_F()
[all …]
/external/tinyxml2/docs/
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 Hierarchy",url:"hierarchy.html"}, property
32 {text:"Class Members",url:"functions.html",children:[ property
33 {text:"All",url:"functions.html",children:[ property
34 {text:"a",url:"functions.html#index_a"}, property
35 {text:"b",url:"functions_b.html#index_b"}, property
[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:"Modules",url:"modules.html"}, property
29 {text:"Classes",url:"annotated.html",children:[ property
30 {text:"Class List",url:"annotated.html"}, property
31 {text:"Class Index",url:"classes.html"}, property
32 {text:"Class Members",url:"functions.html",children:[ property
33 {text:"All",url:"functions.html",children:[ property
34 {text:"a",url:"functions.html#index_a"}, property
35 {text:"b",url:"functions.html#index_b"}, property
[all …]
/external/guava/guava/src/com/google/common/io/
DResources.java29 import java.net.URL;
36 * 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/android/guava/src/com/google/common/io/
DResources.java29 import java.net.URL;
36 * 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/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/docs/_data/
Dnavigation.yml3 url: doc/reference/
5 url: https://github.com/google/ExoPlayer
7 url: https://medium.com/google-exoplayer
13 url: index.html
15 url: pros-and-cons.html
17 url: demo-application.html
19 url: supported-formats.html
21 url: supported-devices.html
23 url: glossary.html
27 url: hello-world.html
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/docs/_data/
Dnavigation.yml3 url: doc/reference/
5 url: https://github.com/google/ExoPlayer
7 url: https://medium.com/google-exoplayer
13 url: index.html
15 url: pros-and-cons.html
17 url: demo-application.html
19 url: supported-formats.html
21 url: supported-devices.html
23 url: glossary.html
27 url: hello-world.html
[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/cronet/net/base/
Dschemeful_site_unittest.cc11 #include "url/gurl.h"
12 #include "url/origin.h"
13 #include "url/url_util.h"
19 url::Origin kTestOrigins[] = { in TEST()
20 url::Origin::Create(GURL("http://a.foo.test")), in TEST()
21 url::Origin::Create(GURL("http://b.foo.test")), in TEST()
22 url::Origin::Create(GURL("http://foo.test")), in TEST()
23 url::Origin::Create(GURL("http://a.b.foo.test"))}; in TEST()
35 url::Origin kTestOrigins[] = { in TEST()
36 url::Origin::Create(GURL("data:text/html,<body>Hello World</body>")), in TEST()
[all …]
/external/googleapis/google/ads/googleads/v14/errors/
Durl_field_error.proto28 // Proto file describing url field errors.
30 // Container for enum describing possible url field errors.
32 // Enum describing possible url field errors.
40 // The tracking url template is invalid.
43 // The tracking url template contains invalid tag.
46 // The tracking url template must contain at least one tag (for example,
47 // {lpurl}), This applies only to tracking url template associated with
51 // The tracking url template must start with a valid protocol (or lpurl
55 // The tracking url template starts with an invalid protocol.
58 // The tracking url template contains illegal characters.
[all …]
/external/googleapis/google/ads/googleads/v16/errors/
Durl_field_error.proto28 // Proto file describing url field errors.
30 // Container for enum describing possible url field errors.
32 // Enum describing possible url field errors.
40 // The tracking url template is invalid.
43 // The tracking url template contains invalid tag.
46 // The tracking url template must contain at least one tag (for example,
47 // {lpurl}), This applies only to tracking url template associated with
51 // The tracking url template must start with a valid protocol (or lpurl
55 // The tracking url template starts with an invalid protocol.
58 // The tracking url template contains illegal characters.
[all …]
/external/googleapis/google/ads/googleads/v15/errors/
Durl_field_error.proto28 // Proto file describing url field errors.
30 // Container for enum describing possible url field errors.
32 // Enum describing possible url field errors.
40 // The tracking url template is invalid.
43 // The tracking url template contains invalid tag.
46 // The tracking url template must contain at least one tag (for example,
47 // {lpurl}), This applies only to tracking url template associated with
51 // The tracking url template must start with a valid protocol (or lpurl
55 // The tracking url template starts with an invalid protocol.
58 // The tracking url template contains illegal characters.
[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 …]

12345678910>>...506