- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 85 for APPLICATION (0.16 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/http/RequestLine.kt
import java.net.HttpURLConnection import java.net.Proxy import okhttp3.HttpUrl import okhttp3.Request object RequestLine { /** * Returns the request status line, like "GET / HTTP/1.1". This is exposed to the application by * [HttpURLConnection.getHeaderFields], so it needs to be set even if the transport is * HTTP/2. */ fun get( request: Request, proxyType: Proxy.Type, ): String = buildString {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/guide/PostExample.java
import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; public class PostExample { public static final MediaType JSON = MediaType.get("application/json; charset=utf-8"); final OkHttpClient client = new OkHttpClient(); String post(String url, String json) throws IOException { RequestBody body = RequestBody.create(json, JSON);
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2K bytes - Viewed (0) -
samples/crawler/build.gradle.kts
plugins { kotlin("jvm") application } application { mainClass.set("okhttp3.sample.Crawler") } dependencies { implementation(projects.okhttp) implementation(libs.jsoup) } tasks.compileJava { options.isWarnings = false
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Feb 15 23:38:32 GMT 2022 - 234 bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/CustomTrust.java
public CustomTrust() { // This implementation just embeds the PEM files in Java strings; most applications will // instead read this from a resource file that gets bundled with the application. HandshakeCertificates certificates = new HandshakeCertificates.Builder() .addTrustedCertificate(letsEncryptCertificateAuthority) .addTrustedCertificate(entrustRootCertificateAuthority)
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Aug 12 07:26:27 GMT 2021 - 9.3K bytes - Viewed (2) -
okhttp/src/test/java/okhttp3/MultipartBodyTest.kt
} @Test fun nonAsciiFilename() { val expected = """ |--AaB03x |Content-Disposition: form-data; name="attachment"; filename="resumé.pdf" |Content-Type: application/pdf; charset=utf-8 | |Jesse’s Resumé |--AaB03x-- | """.trimMargin().replace("\n", "\r\n") val body = MultipartBody.Builder("AaB03x")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.4K bytes - Viewed (0) -
android-test-app/src/main/kotlin/okhttp/android/testapp/TestApplication.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp.android.testapp import android.app.Application
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 702 bytes - Viewed (0) -
android-test/src/main/AndroidManifest.xml
XML - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jul 09 11:08:42 GMT 2023 - 310 bytes - Viewed (0) -
docs/features/caching.md
server behaviour when ambiguous. # Basic Usage ```kotlin private val client: OkHttpClient = OkHttpClient.Builder() .cache(Cache( directory = File(application.cacheDir, "http_cache"), // $0.05 worth of phone storage in 2020 maxSize = 50L * 1024L * 1024L // 50 MiB )) .build() ``` ## EventListener events
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 3.1K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
} private fun dnsResponse(s: String): MockResponse { return MockResponse.Builder() .body(Buffer().write(s.decodeHex())) .addHeader("content-type", "application/dns-message") .addHeader("content-length", s.length / 2) .build() } private fun buildLocalhost( bootstrapClient: OkHttpClient, includeIPv6: Boolean, post: Boolean = false,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 11K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt
} is SocketException -> { // Conscrypt, JDK 8 (>= 292), JDK 9 } is ConnectionShutdownException -> { // It didn't fail until it reached the application layer. } else -> { assertThat(expected.message).isEqualTo("exhausted all routes") } } } } @Test fun invalidClientAuthEvents() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 12.5K bytes - Viewed (0)