- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 1,475 for server (0.14 sec)
-
native-image-tests/src/test/kotlin/okhttp3/nativeimage/SampleTest.kt
import org.junit.jupiter.api.Test class SampleTest { private val server = MockWebServer() private val client = OkHttpClient() @Test fun passingTest() { assertThat("hello").isEqualTo("hello") } @Test fun testMockWebServer() { server.enqueue(MockResponse(body = "abc")) server.start() client.newCall(Request(url = server.url("/"))).execute().use {Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Jul 22 20:31:49 UTC 2025 - 1.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt
.Builder() .addPlatformTrustedCertificates() .addInsecureHost(server.hostName) .build() val client = OkHttpClient .Builder() .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager) .build() fun run() { try { val request = Request(server.url("/")) client.newCall(request).execute().use { response ->
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponse.java
private int securityMode; private int dialect; /** * Gets the server capabilities * * @return the capabilities flags from the server */ public int getCapabilities() { return this.capabilities; } /** * Gets the server GUID * * @return the server's unique identifier */ public byte[] getServerGuid() { return this.serverGuid;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
cmd/endpoint_test.go
{[]string{"http://localhost/d1", "http://localhost/d2", "http://localhost/d1", "http://localhost/d4"}, fmt.Errorf("duplicate endpoints found")}, {[]string{"ftp://server/d1", "http://server/d2", "http://server/d3", "http://server/d4"}, fmt.Errorf("'ftp://server/d1': invalid URL endpoint format")}, {[]string{"d1", "http://localhost/d2", "d3", "d4"}, fmt.Errorf("mixed style endpoints are not supported")},Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 18.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/ServerData.java
/** * Container for SMB server negotiation data. * This class holds the server capabilities, configuration, and security * parameters received during SMB protocol negotiation. * * Stores server-specific data obtained during SMB1 protocol negotiation. */ public class ServerData { /** * Default constructor for ServerData. * Creates an empty server data container to be populated during SMB negotiation.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.9K bytes - Viewed (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/crypto/DefaultSettingsDecryptionRequest.java
} @Override public List<Server> getServers() { if (servers == null) { servers = new ArrayList<>(); } return servers; } @Override public DefaultSettingsDecryptionRequest setServers(List<Server> servers) { this.servers = servers; return this; } @OverrideRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.9K bytes - Viewed (0) -
okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt
.build() server.enqueue( MockResponse .Builder() .headersDelay(500, TimeUnit.MILLISECONDS) .setHeader("content-type", "text/event-stream") .body("data: hey\n\n") .build(), ) newEventSource() listener.assertFailure("timeout") } @Test fun retainsAccept() { server.enqueue( MockResponse
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 8.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2.java
* Creates a new request to connect to the SAM service. * * @param server the server name to connect to * @param access the desired access rights * @param policyHandle the policy handle to be populated */ public MsrpcSamrConnect2(final String server, final int access, final SamrPolicyHandle policyHandle) { super(server, access, policyHandle); ptype = 0;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/MsrpcSamrConnect4.java
* Creates a new request to connect to the SAM service. * * @param server the server name to connect to * @param access the desired access rights * @param policyHandle the policy handle to be populated */ public MsrpcSamrConnect4(final String server, final int access, final SamrPolicyHandle policyHandle) { super(server, 2, access, policyHandle); this.ptype = 0;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt
private val nullHostnameVerifier = HostnameVerifier { _: String?, _: SSLSession? -> true } private val cookieManager = CookieManager() @StartStop private val server = MockWebServer() @BeforeEach fun setUp() { platform.assumeNotOpenJSSE() server.protocolNegotiationEnabled = false val loggingFileSystem = LoggingFilesystem(fileSystem) cache = buildCache("/cache/".toPath(), Int.MAX_VALUE.toLong(), loggingFileSystem)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6K bytes - Viewed (0)