Home
last modified time | relevance | path

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

12345678910>>...36

/external/chromium-trace/trace-viewer/third_party/Paste/paste/
Durlmap.py125 def normalize_url(self, url, trim=True): argument
126 if isinstance(url, (list, tuple)):
127 domain = url[0]
128 url = self.normalize_url(url[1])[1]
129 return domain, url
130 assert (not url or url.startswith('/')
131 or self.domain_url_re.search(url)), (
132 "URL fragments must start with / or http:// (you gave %r)" % url)
133 match = self.domain_url_re.search(url)
135 url = url[match.end():]
[all …]
Durlmap.py.orig83 ``PATH_INFO.startswith(url)``), and the values are applications to
125 def normalize_url(self, url, trim=True):
126 if isinstance(url, (list, tuple)):
127 domain = url[0]
128 url = self.normalize_url(url[1])[1]
129 return domain, url
130 assert (not url or url.startswith('/')
131 or self.domain_url_re.search(url)), (
132 "URL fragments must start with / or http:// (you gave %r)" % url)
133 match = self.domain_url_re.search(url)
[all …]
/external/guava/guava/src/com/google/common/io/
DResources.java61 public static InputSupplier<InputStream> newInputStreamSupplier(URL url) { in newInputStreamSupplier() argument
62 return ByteStreams.asInputSupplier(asByteSource(url)); in newInputStreamSupplier()
70 public static ByteSource asByteSource(URL url) { in asByteSource() argument
71 return new UrlByteSource(url); in asByteSource()
79 private final URL url; field in Resources.UrlByteSource
81 private UrlByteSource(URL url) { in UrlByteSource() argument
82 this.url = checkNotNull(url); in UrlByteSource()
87 return url.openStream(); in openStream()
92 return "Resources.asByteSource(" + url + ")"; in toString()
109 URL url, Charset charset) { in newReaderSupplier() argument
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DWebPlatformUrlTest.java106 URL url = null; in testJavaNetUrl() local
110 url = new URL(testData.input); in testJavaNetUrl()
113 url = new URL(baseUrl, testData.input); in testJavaNetUrl()
120 assertNull("Expected URL to fail parsing", url); in testJavaNetUrl()
122 assertNotNull("Expected URL to parse successfully, but was " + failureMessage, url); in testJavaNetUrl()
123 String effectivePort = url.getPort() != -1 ? Integer.toString(url.getPort()) : ""; in testJavaNetUrl()
124 String effectiveQuery = url.getQuery() != null ? "?" + url.getQuery() : ""; in testJavaNetUrl()
125 String effectiveFragment = url.getRef() != null ? "#" + url.getRef() : ""; in testJavaNetUrl()
126 assertEquals("scheme", testData.scheme, url.getProtocol()); in testJavaNetUrl()
127 assertEquals("host", testData.host, url.getHost()); in testJavaNetUrl()
[all …]
DCacheTest.java179 .url(server.getUrl("/")) in assertCached()
222 Request request = new Request.Builder().url(server.getUrl("/")).build(); in testResponseCaching()
259 Request request = new Request.Builder().url(server.getUrl("/")).build(); in secureResponseCaching()
298 Request request = new Request.Builder().url(server.getUrl("/")).build(); in responseCachingAndRedirects()
320 Request request1 = new Request.Builder().url(server.getUrl("/foo")).build(); in redirectToCachedResult()
327 Request request2 = new Request.Builder().url(server.getUrl("/bar")).build(); in redirectToCachedResult()
335 Request request3 = new Request.Builder().url(server.getUrl("/baz")).build(); in redirectToCachedResult()
449 URL url = server.getUrl("/"); in temporaryRedirectCachedWithCachingHeader() local
450 assertEquals("a", get(url).body().string()); in temporaryRedirectCachedWithCachingHeader()
451 assertEquals("a", get(url).body().string()); in temporaryRedirectCachedWithCachingHeader()
[all …]
DCallTest.java113 .url(server.getUrl("/")) in get()
134 .url("foo://bar?baz") in lazilyEvaluateRequestUrl()
137 .url(server.getUrl("/")) in lazilyEvaluateRequestUrl()
149 .url("ftp://hostname/path") in invalidScheme()
159 .url("http://localhost:65536/") in invalidPort()
162 callback.await(request.url()) in invalidPort()
170 .url(server.getUrl("/")) in getReturns500()
202 .url(server.getUrl("/")) in head()
232 .url(server.getUrl("/")) in post()
261 .url(server.getUrl("/")) in postZeroLength()
[all …]
DRequestTest.java95 Request get = new Request.Builder().url("http://localhost/api").get().build(); in crudVerbs()
99 Request head = new Request.Builder().url("http://localhost/api").head().build(); in crudVerbs()
103 Request delete = new Request.Builder().url("http://localhost/api").delete().build(); in crudVerbs()
107 Request post = new Request.Builder().url("http://localhost/api").post(body).build(); in crudVerbs()
111 Request put = new Request.Builder().url("http://localhost/api").put(body).build(); in crudVerbs()
115 Request patch = new Request.Builder().url("http://localhost/api").patch(body).build(); in crudVerbs()
121 Request request = new Request.Builder().url("http://localhost/api").build(); in uninitializedURI()
123 assertEquals(new URL("http://localhost/api"), request.url()); in uninitializedURI()
127 Request requestWithoutCache = new Request.Builder().url("http://localhost/api").build(); in newBuilderUrlResetsUrl()
128 …Request builtRequestWithoutCache = requestWithoutCache.newBuilder().url("http://localhost/api/foo"… in newBuilderUrlResetsUrl()
[all …]
/external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/transport/
DTransport.java48 protected String url; field in Transport
67 public Transport(String url) { in Transport() argument
68 this(null, url); in Transport()
71 public Transport(String url, int timeout) { in Transport() argument
72 this.url = url; in Transport()
76 public Transport(String url, int timeout, int bufferLength) { in Transport() argument
77 this.url = url; in Transport()
90 public Transport(Proxy proxy, String url) { in Transport() argument
92 this.url = url; in Transport()
95 public Transport(Proxy proxy, String url, int timeout) { in Transport() argument
[all …]
/external/jetty/src/java/org/eclipse/jetty/util/resource/
DResource.java88 public static Resource newResource(URL url) in newResource() argument
91 return newResource(url, __defaultUseCaches); in newResource()
101 static Resource newResource(URL url, boolean useCaches) in newResource() argument
103 if (url==null) in newResource()
106 String url_string=url.toExternalForm(); in newResource()
111 FileResource fileResource= new FileResource(url); in newResource()
117 return new BadResource(url,e.toString()); in newResource()
122 return new JarFileResource(url, useCaches); in newResource()
126 return new JarResource(url, useCaches); in newResource()
129 return new URLResource(url,null,useCaches); in newResource()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DRequest.java38 private volatile URL url; // Lazily initialized. field in Request
48 this.url = builder.url; in Request()
51 public URL url() { in url() method in Request
53 URL result = url; in url()
54 return result != null ? result : (url = new URL(urlString)); in url()
63 return result != null ? result : (uri = Platform.get().toUriLenient(url())); in uri()
111 return url().getProtocol().equals("https"); in isHttps()
126 private URL url; field in Request.Builder
139 this.url = request.url; in Builder()
146 public Builder url(String url) { in url() method in Request.Builder
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/model/
DGlideUrl.java25 private final URL url; field in GlideUrl
30 public GlideUrl(URL url) { in GlideUrl() argument
31 if (url == null) { in GlideUrl()
34 this.url = url; in GlideUrl()
38 public GlideUrl(String url) { in GlideUrl() argument
39 if (TextUtils.isEmpty(url)) { in GlideUrl()
40 throw new IllegalArgumentException("String url must not be empty or null: " + url); in GlideUrl()
42 this.stringUrl = url; in GlideUrl()
43 this.url = null; in GlideUrl()
68 stringUrl = url.toString(); in toString()
/external/chromium-trace/trace-viewer/third_party/webapp2/tests/
Drouting_test.py15 url = route.build(Request.blank('/'), (), {})
16 self.assertEqual(url, '/hello')
21 url = route.build(Request.blank('/'), (), {})
22 self.assertEqual(url, '/hello/world/')
50 url = route.build(Request.blank('/'), (), dict(foo='baz'))
51 self.assertEqual(url, '/baz')
58 url = route.build(Request.blank('/'), (), dict(year='2010'))
59 self.assertEqual(url, '/2010')
63 url = route.build(Request.blank('/'), (), dict(year='2010'))
64 self.assertEqual(url, '/2010/foo/')
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DAuthenticatorAdapter.java40 URL url = request.url(); in authenticate() local
46 url.getHost(), getConnectToInetAddress(proxy, url), url.getPort(), url.getProtocol(), in authenticate()
47 challenge.getRealm(), challenge.getScheme(), url, RequestorType.SERVER); in authenticate()
62 URL url = request.url(); in authenticateProxy() local
69 proxyAddress.getHostName(), getConnectToInetAddress(proxy, url), proxyAddress.getPort(), in authenticateProxy()
70 url.getProtocol(), challenge.getRealm(), challenge.getScheme(), url, in authenticateProxy()
82 private InetAddress getConnectToInetAddress(Proxy proxy, URL url) throws IOException { in getConnectToInetAddress() argument
85 : InetAddress.getByName(url.getHost()); in getConnectToInetAddress()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/file/
DFileURLConnectionTest.java25 import libcore.net.url.FileURLConnection;
34 URL url = ClassLoader.getSystemClassLoader().getResource(resourceName); in getContentType() local
35 assertNotNull("Cannot find test resource " + resourceName, url); in getContentType()
36 return new FileURLConnection(url).getContentType(); in getContentType()
53 URL url = ClassLoader.getSystemClassLoader().getResource(resourceName); in testGetInputStream() local
54 URL anchorUrl = new URL(url, "#anchor"); in testGetInputStream()
61 String localURLString = "file://localhost/" + url.getFile(); in testGetInputStream()
70 URL url = ClassLoader.getSystemClassLoader().getResource(resourceName); in testHeaderFunctions() local
71 FileURLConnection conn = new FileURLConnection(url); in testHeaderFunctions()
77 url = ClassLoader.getSystemClassLoader().getResource(resourceName); in testHeaderFunctions()
[all …]
/external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/
DHttpTransportSE.java52 public HttpTransportSE(String url) { in HttpTransportSE() argument
53 super(null, url); in HttpTransportSE()
65 public HttpTransportSE(Proxy proxy, String url) { in HttpTransportSE() argument
66 super(proxy, url); in HttpTransportSE()
77 public HttpTransportSE(String url, int timeout) { in HttpTransportSE() argument
78 super(url, timeout); in HttpTransportSE()
81 public HttpTransportSE(Proxy proxy, String url, int timeout) { in HttpTransportSE() argument
82 super(proxy, url, timeout); in HttpTransportSE()
95 public HttpTransportSE(String url, int timeout, int contentLength) { in HttpTransportSE() argument
96 super(url, timeout); in HttpTransportSE()
[all …]
/external/wpa_supplicant_8/src/wps/
Dhttp_client.c193 char * http_client_url_parse(const char *url, struct sockaddr_in *dst, in http_client_url_parse() argument
198 u = os_strdup(url); in http_client_url_parse()
221 url, addr, port); in http_client_url_parse()
242 struct http_client * http_client_url(const char *url, in http_client_url() argument
254 if (os_strncmp(url, "http://", 7) != 0) in http_client_url()
256 u = http_client_url_parse(url, &dst, &path); in http_client_url()
261 req_buf = wpabuf_alloc(os_strlen(url) + 1000); in http_client_url()
323 char * http_link_update(char *url, const char *base) in http_link_update() argument
332 if (url == NULL) in http_link_update()
335 if (os_strncmp(url, "http://", 7) == 0) in http_link_update()
[all …]
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_GetLocal.java37 public static File getLocalFile(String url) throws IOException, in getLocalFile() argument
39 url = Support_Resources.RESOURCE_PACKAGE + url; in getLocalFile()
40 File temp = cache.get(url); in getLocalFile()
42 InputStream in = Support_GetLocal.class.getResourceAsStream(url); in getLocalFile()
53 cache.put(url, temp); in getLocalFile()
58 public static File getExternalLocalFile(String url) throws IOException, in getExternalLocalFile() argument
60 File temp = cache.get(url); in getExternalLocalFile()
62 InputStream in = new URL(url).openStream(); in getExternalLocalFile()
73 cache.put(url, temp); in getExternalLocalFile()
78 static ByteArrayInputStream getStream(String url) throws IOException, in getStream() argument
[all …]
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/
DOkUrlFactory.java47 public HttpURLConnection open(URL url) { in open() argument
48 return open(url, client.getProxy()); in open()
51 HttpURLConnection open(URL url, Proxy proxy) { in open() argument
52 String protocol = url.getProtocol(); in open()
56 if (protocol.equals("http")) return new HttpURLConnectionImpl(url, copy); in open()
57 if (protocol.equals("https")) return new HttpsURLConnectionImpl(url, copy); in open()
75 @Override protected URLConnection openConnection(URL url) { in createURLStreamHandler()
76 return open(url); in createURLStreamHandler()
79 @Override protected URLConnection openConnection(URL url, Proxy proxy) { in createURLStreamHandler() argument
80 return open(url, proxy); in createURLStreamHandler()
/external/markdown/MarkdownTest/Tests_2007/
DLinks, inline style.text1 Just a [URL](/url/).
3 [URL and title](/url/ "title").
5 [URL and title](/url/ "title preceded by two spaces").
7 [URL and title](/url/ "title preceded by a tab").
9 [URL and title](/url/ "title has spaces afterward" ).
11 [URL wrapped in angle brackets](</url/>).
13 [URL w/ angle brackets + title](</url/> "Here's the title").
19 (With outer parens and [parens in url](/foo(bar)))
24 (With outer parens and [parens in url](/foo(bar) "and a title"))
/external/libxml2/result/
Dslashdot16.xml.rdr12 2 1 url 0 0
14 2 15 url 0 0
63 2 1 url 0 0
65 2 15 url 0 0
114 2 1 url 0 0
116 2 15 url 0 0
165 2 1 url 0 0
167 2 15 url 0 0
216 2 1 url 0 0
218 2 15 url 0 0
[all …]
Dslashdot16.xml.rde12 2 1 url 0 0
14 2 15 url 0 0
63 2 1 url 0 0
65 2 15 url 0 0
114 2 1 url 0 0
116 2 15 url 0 0
165 2 1 url 0 0
167 2 15 url 0 0
216 2 1 url 0 0
218 2 15 url 0 0
[all …]
/external/libxml2/doc/
Dsearch.php265 $url = "html/libxml-$module.html#$id"; variable
267 $module, $desc, $name, $url);
290 $url = "XSLT/html/libxslt-$module.html#$id"; variable
292 $module, $desc, $name, $url);
309 $url = "html/$module"; variable
311 $url = $url + "#$id"; variable
315 $module, $desc, $name, $url);
330 $url = "XSLT/$module"; variable
332 $url = $url + "#$id"; variable
336 $module, $desc, $name, $url);
[all …]
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/
DCrawler.java69 for (URL url; (url = queue.take()) != null; ) { in drainQueue()
70 if (!fetchedUrls.add(url)) { in drainQueue()
75 fetch(url); in drainQueue()
77 System.out.printf("XXX: %s %s%n", url, e); in drainQueue()
82 public void fetch(URL url) throws IOException { in fetch() argument
85 AtomicInteger previous = hostnames.putIfAbsent(url.getHost(), hostnameCount); in fetch()
90 .url(url) in fetch()
98 System.out.printf("%03d: %s %s%n", responseCode, url, responseSource); in fetch()
106 Document document = Jsoup.parse(response.body().string(), url.toString()); in fetch()
109 URL link = parseUrl(response.request().url(), href); in fetch()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DURLHandler.java99 public static URLHandler get(URL url) { in get() argument
100 if (url == null) { in get()
104 String protocol = url.getProtocol(); in get()
111 URLHandler handler = (URLHandler)m.invoke(null, new Object[] { url }); in get()
129 return getDefault(url); in get()
132 protected static URLHandler getDefault(URL url) { in getDefault() argument
135 String protocol = url.getProtocol(); in getDefault()
138 handler = new FileURLHandler(url); in getDefault()
140 handler = new JarURLHandler(url); in getDefault()
151 FileURLHandler(URL url) { in FileURLHandler() argument
[all …]
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/asset/plugins/
DUrlAssetInfo.java19 private URL url; field in UrlAssetInfo
22 …public static UrlAssetInfo create(AssetManager assetManager, AssetKey key, URL url) throws IOExcep… in create() argument
25 URLConnection conn = url.openConnection(); in create()
33 return new UrlAssetInfo(assetManager, key, url, in); in create()
37 …private UrlAssetInfo(AssetManager assetManager, AssetKey key, URL url, InputStream in) throws IOEx… in UrlAssetInfo() argument
39 this.url = url; in UrlAssetInfo()
57 URLConnection conn = url.openConnection(); in openStream()
61 throw new AssetLoadException("Failed to read URL " + url, ex); in openStream()

12345678910>>...36