- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for setRequestProperty (0.3 sec)
-
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
} @Override public void setDefaultUseCaches(final boolean defaultUseCaches) { connection.setDefaultUseCaches(defaultUseCaches); } @Override public void setRequestProperty(final String key, final String value) { if (key == null) { throw new NullPointerException(); } final List values = new ArrayList(); values.add(value);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 22.1K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmHttpURLConnection.java
value.append(values.next()); if (values.hasNext()) { value.append(", "); } } this.setRequestProperty(key, value.toString()); } this.setAllowUserInteraction(this.connection.getAllowUserInteraction()); this.setDoInput(this.connection.getDoInput());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 25.6K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
fun regularResponse() { server.enqueue(MockResponse.Builder().body("hello world").build()) val url = server.url("/").toUrl() val connection = url.openConnection() as HttpURLConnection connection.setRequestProperty("Accept-Language", "en-US") val reader = BufferedReader(InputStreamReader(connection.inputStream, UTF_8)) assertThat(connection.responseCode).isEqualTo(HttpURLConnection.HTTP_OK)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Aug 03 22:38:00 UTC 2025 - 28K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
@Test fun regularResponse() { server.enqueue(MockResponse().setBody("hello world")) val url = server.url("/").toUrl() val connection = url.openConnection() as HttpURLConnection connection.setRequestProperty("Accept-Language", "en-US") val inputStream = connection.inputStream val reader = BufferedReader(InputStreamReader(inputStream, StandardCharsets.UTF_8))
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 03 13:16:34 UTC 2025 - 22.3K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
connection.addRequestProperty(values[0], values[1]); } } if (compression != null) { connection.setRequestProperty("Accept-Encoding", compression); } if (connectionBuilder != null) { connectionBuilder.accept(this, connection); }
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 17.8K bytes - Viewed (0)