- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 473 for url (0.22 sec)
-
okhttp/src/test/java/okhttp3/RequestCommonTest.kt
@Test fun constructorNormal() { val url = "https://example.com/".toHttpUrl() val body = "hello".toRequestBody() val headers = headersOf("User-Agent", "RequestTest") val method = "PUT" val request = Request( url = url, headers = headers, method = method, body = body, ) assertThat(request.url).isEqualTo(url) assertThat(request.headers).isEqualTo(headers)
Plain Text - Registered: Fri Apr 19 11:42:09 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt
server.enqueue(MockResponse()) assert200Http2Response(execute(url), server.hostName) val sanUrl = url.newBuilder().host("san.com").build() assert200Http2Response(execute(sanUrl), "san.com") assertThat(client.connectionPool.connectionCount()).isEqualTo(2) } private fun execute(url: HttpUrl) = client.newCall(Request(url = url)).execute() private fun assert200Http2Response( response: Response,
Plain Text - Registered: Fri Apr 19 11:42:09 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 18.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceUtil.java
* リソースのURLを外部形式に変換します。 * * @param url * リソースのURL。{@literal null}であってはいけません * @return 外部形式 */ public static String toExternalForm(final URL url) { assertArgumentNotNull("url", url); final String s = url.toExternalForm(); return URLUtil.decode(s, "UTF8"); } /** * リソースのファイル名を返します。 * * @param url
Java - Registered: Fri Apr 19 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 15.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java
stream(crawlingConfig.getPermissions()).of(stream -> stream.forEach(p -> roleTypeList.add(p))); if (url.startsWith("smb:") || url.startsWith("smb1:") || url.startsWith("file:") || url.startsWith("ftp:")) { if (url.endsWith("/")) { // directory return true; }
Java - Registered: Mon Apr 22 08:04:10 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 14.6K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
MockResponse.Builder() .socketPolicy(ShutdownServerAfterResponse) .build(), ) val url = server.url("/").toUrl() val connection = url.openConnection() as HttpURLConnection assertThat(connection.responseCode).isEqualTo(HttpURLConnection.HTTP_OK) val refusedConnection = url.openConnection() as HttpURLConnection assertFailsWith<ConnectException> { refusedConnection.responseCode
Plain Text - Registered: Fri Apr 19 11:42:09 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 23.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java
protected String getSiteOnFile(final String url, final String encoding) { if (StringUtil.isBlank(url)) { return StringUtil.EMPTY; // empty } if (url.startsWith("file:////")) { final String value = decodeUrlAsName(url.substring(9), true); return abbreviateSite("\\\\" + value.replace('/', '\\')); } if (url.startsWith("file:")) {
Java - Registered: Mon Apr 22 08:04:10 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 23.5K bytes - Viewed (0) -
docs/en/data/github_sponsors.yml
url: https://github.com/codacy - login: scalar avatarUrl: https://avatars.githubusercontent.com/u/301879?v=4 url: https://github.com/scalar - - login: ObliviousAI avatarUrl: https://avatars.githubusercontent.com/u/65656077?v=4 url: https://github.com/ObliviousAI - - login: databento avatarUrl: https://avatars.githubusercontent.com/u/64141749?v=4 url: https://github.com/databento
Others - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Mon Apr 01 23:12:23 GMT 2024 - 26.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt
server.enqueue(MockResponse(body = "b")) val request = Request(server.url("/")) assertConnectionReused(request, request) } @Test fun connectionsAreReusedForPosts() { server.enqueue(MockResponse(body = "a")) server.enqueue(MockResponse(body = "b")) val request = Request( url = server.url("/"), body = "request body".toRequestBody("text/plain".toMediaType()), )
Plain Text - Registered: Fri Apr 19 11:42:09 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 12.3K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java
* Decodes the specified (portion of a) URL. <strong>Note:</strong> This decoder assumes that ISO-8859-1 is used to * convert URL-encoded bytes to characters. * * @param url The URL to decode, may be <code>null</code>. * @return The decoded URL or <code>null</code> if the input was <code>null</code>. */ private static String decode(String url) { String decoded = url; if (url != null) {
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 11K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
checkNotNull(url) { "url not set" }, includeIPv6, post, resolvePrivateAddresses, resolvePublicAddresses, ) } fun client(client: OkHttpClient) = apply { this.client = client } fun url(url: HttpUrl) = apply { this.url = url }
Plain Text - Registered: Fri Apr 19 11:42:09 GMT 2024 - Last Modified: Fri Mar 22 07:09:21 GMT 2024 - 9.8K bytes - Viewed (0)