- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 126 for httpUrl (0.16 sec)
-
mockwebserver/README.md
server.enqueue(new MockResponse().setBody("yo dog")); // Start the server. server.start(); // Ask the server for its URL. You'll need this to make HTTP requests. HttpUrl baseUrl = server.url("/v1/chat/"); // Exercise your application code, which should make those HTTP requests. // Responses are returned in the same order that they are enqueued. Chat chat = new Chat(baseUrl);
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Dec 17 15:34:10 UTC 2023 - 5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt
private lateinit var client: OkHttpClient private lateinit var rootCa: HeldCertificate private lateinit var certificate: HeldCertificate private val dns = FakeDns() private lateinit var url: HttpUrl private lateinit var serverIps: List<InetAddress> @BeforeEach fun setUp(server: MockWebServer) { this.server = server platform.assumeHttp2Support() platform.assumeNotBouncyCastle() rootCa =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 18.7K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
return Proxy(Proxy.Type.HTTP, address) } /** * Returns a URL for connecting to this server. * * @param path the request path, such as "/". */ fun url(path: String): HttpUrl { return HttpUrl.Builder() .scheme(if (sslSocketFactory != null) "https" else "http") .host(hostName) .port(port) .build() .resolve(path)!! } /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 37.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/EventListener.kt
* is configured with a single proxy, a proxy selector, or neither. * * @param url a URL with only the scheme, hostname, and port specified. */ open fun proxySelectStart( call: Call, url: HttpUrl, ) { } /** * Invoked after proxy selection. * * Note that the list of proxies is never null, but it may be a list containing * only [Proxy.NO_PROXY]. This comes up in several situations:
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15.2K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-nested-models.md
Por exemplo, no modelo `Image` nós temos um campo `url`, nós podemos declara-lo como um `HttpUrl` do Pydantic invés de como uma `str`: ```Python hl_lines="4 10" {!../../docs_src/body_nested_models/tutorial005.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.4K bytes - Viewed (0) -
docs/em/docs/tutorial/body-nested-models.md
👀 🌐 🎛 👆 ✔️, 🛒 🩺 <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic 😍 🆎</a>. 👆 🔜 👀 🖼 ⏭ 📃. 🖼, `Image` 🏷 👥 ✔️ `url` 🏑, 👥 💪 📣 ⚫️ ↩️ `str`, Pydantic `HttpUrl`: //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="4 10" {!> ../../docs_src/body_nested_models/tutorial005.py!} ``` //// //// tab | 🐍 3️⃣.9️⃣ & 🔛
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt
* https://github.com/square/okhttp/issues/5770 */ @Test fun proxySelectorNotCalledForNullHost() { // The string '>' is okay in a hostname in HttpUrl, which does very light hostname validation. // It is not okay in URI, and so it's stripped and we get a URI with a null host. val bogusHostname = ">" val address = factory.newAddress(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Mar 06 17:33:38 UTC 2024 - 20.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RequestCommonTest.kt
import assertk.assertions.isNull import assertk.assertions.isSameAs import assertk.assertions.isTrue import kotlin.test.Test import kotlin.test.assertFailsWith import okhttp3.Headers.Companion.headersOf import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.RequestBody.Companion.toRequestBody class RequestCommonTest { @Test fun constructorNormal() { val url = "https://example.com/".toHttpUrl()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/FastFallbackTest.kt
private lateinit var serverIpv4: MockWebServer private lateinit var serverIpv6: MockWebServer private val listener = RecordingEventListener() private lateinit var client: OkHttpClient private lateinit var url: HttpUrl /** * This is mutable and order matters. By default, it contains [IPv4, IPv6]. Tests may manipulate * it to prefer IPv6. */ private var dnsResults = listOf<InetAddress>() @BeforeEach
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.3K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-nested-models.md
Например, так как в модели `Image` у нас есть поле `url`, то мы можем объявить его как тип `HttpUrl` из модуля Pydantic вместо типа `str`: //// tab | Python 3.10+ ```Python hl_lines="2 8" {!> ../../docs_src/body_nested_models/tutorial005_py310.py!} ``` //// //// tab | Python 3.9+
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 14.8K bytes - Viewed (0)