- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 303 for Content (0.18 sec)
-
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
* * Example: * ``` * --> POST /greeting http/1.1 * Host: example.com * Content-Type: plain/text * Content-Length: 3 * --> END POST * * <-- 200 OK (22ms) * Content-Type: plain/text * Content-Length: 6 * <-- END HTTP * ``` */ HEADERS, /**
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 11.2K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/RequestBodyTest.kt
FileInputStream(filePath.toFile()).use { fis -> fn(fis.fd) } } } private inline fun <T> assertOnPath( content: String? = null, fn: (okio.Path) -> T, ): T { FileSystem.SYSTEM.write(filePath) { if (content != null) { writeUtf8(content) } } return fn(filePath) }
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.6K bytes - Viewed (1) -
okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt
.body( """ |data: hey | | """.trimMargin(), ).setHeader("content-type", "text/plain") .build(), ) newEventSource() listener.assertFailure("Invalid content-type: text/plain") } @Test fun badResponseCode() { server.enqueue( MockResponse.Builder() .body( """
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 6.6K bytes - Viewed (0) -
docs/fr/docs/advanced/additional-responses.md
Le bon endroit est : * Dans la clé `content`, qui a pour valeur un autre objet JSON (`dict`) qui contient : * Une clé avec le type de support, par ex. `application/json`, qui contient comme valeur un autre objet JSON, qui contient : * Une clé `schema`, qui a pour valeur le schéma JSON du modèle, voici le bon endroit.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
* content to go along with it. https://github.com/square/okhttp/issues/358 */ @Test fun noTransparentGzipFor304NotModified() { server.enqueue( MockResponse.Builder() .clearHeaders() .code(HttpURLConnection.HTTP_NOT_MODIFIED) .addHeader("Content-Encoding: gzip") .build(), )
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
assertThat(cache.hitCount()).isEqualTo(0) } private fun corruptCertificate(cacheEntry: Path) { var content = fileSystem.source(cacheEntry).buffer().readUtf8() content = content.replace("MII", "!!!") fileSystem.sink(cacheEntry).buffer().writeUtf8(content).close() } @Test fun responseCachingAndRedirects() { server.enqueue( MockResponse.Builder()
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/RealResponseBody.kt
import okhttp3.MediaType.Companion.toMediaTypeOrNull import okhttp3.ResponseBody import okio.BufferedSource class RealResponseBody( /** * Use a string to avoid parsing the content type until needed. This also defers problems caused * by malformed content types. */ private val contentTypeString: String?, private val contentLength: Long, private val source: BufferedSource, ) : ResponseBody() {
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt
return Buffer().writeUtf8("hello") } } assertFailsWith<IOException> { body.bytes() }.also { expected -> assertThat(expected.message).isEqualTo( "Content-Length (10) and stream length (5) disagree", ) } } @Test fun bytesThrowsMoreThanIntMaxValue() { val body: ResponseBody = object : ResponseBody() {
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13K bytes - Viewed (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.repositories.gradle.kts
* limitations under the License. */ repositories { maven { name = "Gradle public repository" url = uri("https://repo.gradle.org/gradle/public") content { includeGroup("net.rubygrapefruit") includeModule("flot", "flot") includeModule("org.gradle", "gradle-tooling-api")
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Fri Apr 05 14:05:00 GMT 2024 - 1.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/ParseResponseWithMoshi.kt
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.6K bytes - Viewed (1)