- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 72 for toUri (2.9 sec)
-
okhttp/src/test/java/okhttp3/CookiesTest.kt
cookieA.domain = serverUrl.host cookieA.path = "/" cookieManager.cookieStore.add(serverUrl.toUri(), cookieA) val cookieB = HttpCookie("b", "banana") cookieB.domain = serverUrl.host cookieB.path = "/" cookieManager.cookieStore.add(serverUrl.toUri(), cookieB) client = client.newBuilder() .cookieJar(JavaNetCookieJar(cookieManager)) .build()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt
client.stop() } @Test fun get(server: MockWebServer) { server.enqueue(MockResponse(body = "hello, Jetty HTTP Client")) val request = client.newRequest(server.url("/").toUri()) .header("Accept", "text/plain") val response = request.send() assertThat(response.status).isEqualTo(200) assertThat(response.contentAsString).isEqualTo("hello, Jetty HTTP Client")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/ClassPath.java
for (String entry : Splitter.on(PATH_SEPARATOR.value()).split(JAVA_CLASS_PATH.value())) { try { try { urls.add(new File(entry).toURI().toURL()); } catch (SecurityException e) { // File.toURI checks to see if the file is a directory urls.add(new URL("file", null, new File(entry).getAbsolutePath())); } } catch (MalformedURLException e) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jan 05 17:43:40 GMT 2022 - 24.9K bytes - Viewed (1) -
maven-core/src/test/java/org/apache/maven/internal/transformation/AbstractRepositoryTestCase.java
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Tue Apr 23 12:55:57 GMT 2024 - 3.4K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/repository/TestMavenRepositorySystem.java
"file://" + new File(System.getProperty("basedir", "."), "src/test/remote-repo") .getAbsoluteFile() .toURI() .getPath(), new DefaultRepositoryLayout(), new ArtifactRepositoryPolicy(), new ArtifactRepositoryPolicy()); }
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Wed Dec 13 22:19:20 GMT 2023 - 2.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/net/URLUtilTest.java
} /** * @throws Exception */ public void testToFile() throws Exception { final File file = new File("Program Files/hoge.txt"); final URL url = file.toURI().toURL(); assertEquals(file.getAbsoluteFile(), URLUtil.toFile(url)); assertEquals(file.getAbsoluteFile(), URLUtil.toFile(new URL("file:Program%20Files/hoge.txt"))); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.9K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt
} @Test fun get(server: MockWebServer) { server.enqueue( MockResponse.Builder() .body("hello, Apache HttpClient 5.x") .build(), ) val request = HttpGet(server.url("/").toUri()) request.addHeader("Accept", "text/plain") httpClient.execute(request).use { response -> assertThat(response.code).isEqualTo(200)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.1K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
fun storiesForCurrentDraft(): Array<String> { val resource = HpackJsonUtil::class.java.getResource("/hpack-test-case") ?: return arrayOf() val testCaseDirectory = File(resource.toURI()).toOkioPath() val result = mutableListOf<String>() for (path in fileSystem.list(testCaseDirectory)) { val story00 = path / "story_00.json" if (!fileSystem.exists(story00)) continue try {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.3K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/Docbook2Xhtml.groovy
} into(getTemporaryDir()) } def stylesheetFile = new File(getTemporaryDir(), "dslHtml.xsl") def xslthlConfigFile = getStylesheetHighlightFile().get().asFile.toURI() // TODO: Implement this with the worker API workerLeaseService.runAsIsolatedTask({ source.visit { FileVisitDetails fvd -> if (fvd.isDirectory()) {
Groovy - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Thu Oct 05 19:36:14 GMT 2023 - 4.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/IoTestCase.java
if (testFileUrl == null) { throw new RuntimeException("unable to locate testdata directory"); } if (testFileUrl.getProtocol().equals("file")) { try { File testFile = new File(testFileUrl.toURI()); testDir = testFile.getParentFile(); // the testdata directory } catch (Exception ignore) { // probably URISyntaxException or IllegalArgumentException
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 5.6K bytes - Viewed (0)