- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for setHeaders (0.12 sec)
-
mockwebserver-deprecated/api/mockwebserver.api
public final fun setChunkedBody (Lokio/Buffer;I)Lokhttp3/mockwebserver/MockResponse; public final fun setHeader (Ljava/lang/String;Ljava/lang/Object;)Lokhttp3/mockwebserver/MockResponse; public final fun setHeaders (Lokhttp3/Headers;)Lokhttp3/mockwebserver/MockResponse; public final fun setHeadersDelay (JLjava/util/concurrent/TimeUnit;)Lokhttp3/mockwebserver/MockResponse;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jul 22 12:28:51 UTC 2023 - 10.2K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
public void accept(final HttpURLConnection con) { try { response.setEncoding(encoding); response.setHttpStatusCode(con.getResponseCode()); response.setHeaders(con.getHeaderFields()); } catch (final Exception e) { throw new CurlException("Failed to access the response.", e); } writeContent(() -> { try {
Registered: Thu Oct 31 02:32:13 UTC 2024 - Last Modified: Sun Feb 12 12:21:25 UTC 2023 - 12.3K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
.clearHeaders() .addHeader("Cookie: s=square") .addHeader("Cookies: delicious") response.setHeaders(Headers.Builder().add("Cookie", "a=android").build()) assertThat(headersToList(response)).containsExactly("Cookie: a=android") } @Test fun regularResponse() { server.enqueue(MockResponse().setBody("hello world")) val url = server.url("/").toUrl()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.9K bytes - Viewed (0) -
docs/changelogs/changelog_4x.md
exception the callback is now notified that the call was canceled. The exception is still sent to the uncaught exception handler for reporting and recovery. * Fix: Un-deprecate `MockResponse.setHeaders()` and other setters. These were deprecated in OkHttp 4.0 but that broke method chaining for Java callers. * Fix: Don't crash on HTTP/2 HEAD requests when the `Content-Length` header is present but is not
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 17 13:25:31 UTC 2024 - 25.2K bytes - Viewed (0) -
mockwebserver/api/mockwebserver3.api
public final fun getBody ()Lmockwebserver3/MockResponseBody; public final fun getBodyDelayNanos ()J public final fun getCode ()I public final fun getHeaders ()Lokhttp3/Headers; public final fun getHeadersDelayNanos ()J public final fun getInTunnel ()Z public final fun getInformationalResponses ()Ljava/util/List; public final fun getMessage ()Ljava/lang/String;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 03 21:59:45 UTC 2023 - 12.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
} @Test @Throws(IOException::class) fun wrongConnectionHeader() { webServer.enqueue( MockResponse.Builder() .code(101) .setHeader("Upgrade", "websocket") .setHeader("Connection", "Downgrade") .setHeader("Sec-WebSocket-Accept", "ujmZX4KXZqjwy6vi1aQFH5p4Ygk=") .build(), ) webServer.enqueue( MockResponse.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 35.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt
assertThat(associatedStreamId).isEqualTo(-1) assertThat(headerBlock).isEqualTo(sentHeaders) } }, ) } @Test fun headersWithPriority() { val sentHeaders = headerEntries("name", "value") val headerBytes = literalHeaders(sentHeaders) writeMedium(frame, (headerBytes.size + 5).toInt()) frame.writeByte(Http2.TYPE_HEADERS)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 28.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt
server.enqueue( MockResponse.Builder() .code(HttpURLConnection.HTTP_MOVED_TEMP) .setHeader("Location", "/b") .headersDelay(100, TimeUnit.MILLISECONDS) .build(), ) server.enqueue( MockResponse.Builder() .code(HttpURLConnection.HTTP_MOVED_TEMP) .setHeader("Location", "/c") .headersDelay(100, TimeUnit.MILLISECONDS) .build(), )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.5K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
*/ fun webSocketUpgrade(listener: WebSocketListener) = apply { status = "HTTP/1.1 101 Switching Protocols" setHeader("Connection", "Upgrade") setHeader("Upgrade", "websocket") webSocketListener = listener } /** * Configures this response to be served as a response to an HTTP CONNECT request, either for
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 13.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NetworkExplorer.java
type.length() > 1 && type.length() < 6 ) { resp.setContentType( mimeMap.getMimeType( type )); } resp.setHeader( "Content-Length", file.length() + "" ); resp.setHeader( "Accept-Ranges", "Bytes" ); while(( n = in.read( buf )) != -1 ) { out.write( buf, 0, n ); } } // TODO catch IOException
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Wed Jan 22 03:57:31 UTC 2020 - 19.7K bytes - Viewed (0)