- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for setServerSocketFactory (0.17 sec)
-
samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/ClientAndServer.java
public void run() throws Exception { File socketFile = new File("/tmp/ClientAndServer.sock"); socketFile.delete(); // Clean up from previous runs. MockWebServer server = new MockWebServer(); server.setServerSocketFactory(new UnixDomainServerSocketFactory(socketFile)); server.setProtocols(Collections.singletonList(Protocol.H2_PRIOR_KNOWLEDGE)); server.enqueue(new MockResponse().setBody("hello")); server.start();
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Dec 24 03:46:30 UTC 2018 - 2.1K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt
message = "moved to var", replaceWith = ReplaceWith( expression = "run { this.serverSocketFactory = serverSocketFactory }", ), level = DeprecationLevel.ERROR, ) fun setServerSocketFactory(serverSocketFactory: ServerSocketFactory) { delegate.serverSocketFactory = serverSocketFactory } fun url(path: String): HttpUrl { before() // This implicitly starts the delegate.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 5.9K bytes - Viewed (0)