- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for setRequestProperty (0.19 sec)
-
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
return connection.getDefaultUseCaches(); } public void setDefaultUseCaches(boolean defaultUseCaches) { connection.setDefaultUseCaches(defaultUseCaches); } public void setRequestProperty(String key, String value) { if (key == null) throw new NullPointerException(); List values = new ArrayList(); values.add(value); boolean found = false;
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 20.4K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmHttpURLConnection.java
while ( values.hasNext() ) { 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 Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 25.5K 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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.9K 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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.5K 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 Oct 31 02:32:13 UTC 2024 - Last Modified: Sun Feb 12 12:21:25 UTC 2023 - 12.3K bytes - Viewed (0)