- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 31 for RecordedRequest (0.18 sec)
-
samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java
import java.util.Map; import okhttp3.HttpUrl; import okhttp3.mockwebserver.Dispatcher; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.MockWebServer; import okhttp3.mockwebserver.RecordedRequest; import okio.ByteString; /** * Runs a MockWebServer on localhost and uses it as the backend to receive an OAuth session. *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Aug 12 07:26:27 UTC 2021 - 3.8K bytes - Viewed (0) -
mockwebserver/README.md
// Optional: confirm that your app made the HTTP requests you were expecting. RecordedRequest request1 = server.takeRequest(); assertEquals("/v1/chat/messages/", request1.getPath()); assertNotNull(request1.getHeader("Authorization")); RecordedRequest request2 = server.takeRequest(); assertEquals("/v1/chat/messages/2", request2.getPath()); RecordedRequest request3 = server.takeRequest();
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Dec 17 15:34:10 UTC 2023 - 5K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/Dispatcher.kt
* limitations under the License. */ package okhttp3.mockwebserver abstract class Dispatcher { @Throws(InterruptedException::class) abstract fun dispatch(request: RecordedRequest): MockResponse open fun peek(): MockResponse { return MockResponse().apply { this.socketPolicy = SocketPolicy.KEEP_OPEN } } open fun shutdown() {}
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Oct 18 12:55:43 UTC 2020 - 909 bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt
return mockwebserver3.PushPromise( method = method, path = path, headers = headers, response = response.wrap(), ) } internal fun mockwebserver3.RecordedRequest.unwrap(): RecordedRequest { return RecordedRequest( requestLine = requestLine, headers = headers, chunkSizes = chunkSizes, bodySize = bodySize, body = body, sequenceNumber = sequenceNumber,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.6K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/QueueDispatcher.kt
import mockwebserver3.QueueDispatcher class QueueDispatcher : Dispatcher() { internal val delegate = QueueDispatcher() @Throws(InterruptedException::class) override fun dispatch(request: RecordedRequest): MockResponse { throw UnsupportedOperationException("unexpected call") } override fun peek(): MockResponse { throw UnsupportedOperationException("unexpected call") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Oct 18 12:55:43 UTC 2020 - 1.3K bytes - Viewed (0) -
okhttp-tls/README.md
.url(server.url("/")) .build()); Response response = call.execute(); System.out.println(response.handshake().peerPrincipal()); RecordedRequest recordedRequest = server.takeRequest(); System.out.println(recordedRequest.getHandshake().peerPrincipal()); ``` This handshake is successful because each party has prearranged to trust the root certificate that signs the other party's chain.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Dec 17 15:34:10 UTC 2023 - 9.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/InterceptorTest.kt
.build() client.newCall(request).execute() val recordedRequest = server.takeRequest() assertThat(recordedRequest.body.readUtf8()).isEqualTo("ABC") assertThat(recordedRequest.headers["Original-Header"]).isEqualTo("foo") assertThat(recordedRequest.headers["OkHttp-Intercepted"]).isEqualTo("yep") assertThat(recordedRequest.method).isEqualTo("POST") } @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 27.8K bytes - Viewed (0) -
mockwebserver/api/mockwebserver3.api
public static synthetic fun start$default (Lmockwebserver3/MockWebServer;IILjava/lang/Object;)V public final fun takeRequest ()Lmockwebserver3/RecordedRequest; public final fun takeRequest (JLjava/util/concurrent/TimeUnit;)Lmockwebserver3/RecordedRequest; public final fun toProxyAddress ()Ljava/net/Proxy; public fun toString ()Ljava/lang/String; public final fun url (Ljava/lang/String;)Lokhttp3/HttpUrl;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 03 21:59:45 UTC 2023 - 12.7K bytes - Viewed (0) -
mockwebserver-deprecated/api/mockwebserver.api
public static synthetic fun start$default (Lokhttp3/mockwebserver/MockWebServer;IILjava/lang/Object;)V public final fun takeRequest ()Lokhttp3/mockwebserver/RecordedRequest; public final fun takeRequest (JLjava/util/concurrent/TimeUnit;)Lokhttp3/mockwebserver/RecordedRequest; public final fun toProxyAddress ()Ljava/net/Proxy; public fun toString ()Ljava/lang/String; public final fun url (Ljava/lang/String;)Lokhttp3/HttpUrl;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jul 22 12:28:51 UTC 2023 - 10.2K bytes - Viewed (0) -
samples/static-server/src/main/java/okhttp3/sample/SampleServer.java
import javax.net.ssl.TrustManagerFactory; import okhttp3.mockwebserver.Dispatcher; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.MockWebServer; import okhttp3.mockwebserver.RecordedRequest; import okio.Buffer; import okio.Okio; public class SampleServer extends Dispatcher { private final SSLContext sslContext; private final String root; private final int port;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Jan 02 02:50:44 UTC 2019 - 4.7K bytes - Viewed (0)