- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 101 for ContentLength (0.19 sec)
-
okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt
val closed = AtomicBoolean() val body: ResponseBody = object : ResponseBody() { override fun contentType(): MediaType? { return null } override fun contentLength(): Long { return 5 } override fun source(): BufferedSource { val source = Buffer().writeUtf8("hello") return object : ForwardingSource(source) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 13K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Mar 22 07:09:21 UTC 2024 - 10.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/AccessResultImpl.java
this.executionTime = executionTime; } @Override public Long getContentLength() { return contentLength; } @Override public void setContentLength(final Long contentLength) { this.contentLength = contentLength; } @Override public Long getLastModified() { return lastModified; } @Override
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java
public void setCharSet(final String charSet) { this.charSet = charSet; } public long getContentLength() { return contentLength; } public void setContentLength(final long contentLength) { this.contentLength = contentLength; } public String getMimeType() { return mimeType; } public void setMimeType(final String contentType) {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:40:57 UTC 2024 - 5.8K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingResponseBody.kt
fun delegate(): ResponseBody { return delegate } override fun contentType(): MediaType? { return delegate.contentType() } override fun contentLength(): Long { return delegate.contentLength() } override fun source(): BufferedSource { return delegate.source() } override fun toString(): String { return javaClass.simpleName + "(" + delegate.toString() + ")"
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/RealResponseBody.kt
* by malformed content types. */ private val contentTypeString: String?, private val contentLength: Long, private val source: BufferedSource, ) : ResponseBody() { override fun contentLength(): Long = contentLength override fun contentType(): MediaType? = contentTypeString?.toMediaTypeOrNull() override fun source(): BufferedSource = source
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.2K bytes - Viewed (0) -
fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/entity/OpenSearchAccessResult.java
builder.field(CREATE_TIME, createTime); } if (executionTime != null) { builder.field(EXECUTION_TIME, executionTime); } if (contentLength != null) { builder.field(CONTENT_LENGTH, contentLength); } if (lastModified != null) { builder.field(LAST_MODIFIED, lastModified); } if (accessResultData instanceof ToXContent) {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Nov 07 04:44:10 UTC 2024 - 4.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt
import okio.Source import okio.Timeout import okio.buffer internal class UnreadableResponseBody( private val mediaType: MediaType?, private val contentLength: Long, ) : ResponseBody(), Source { override fun contentType() = mediaType override fun contentLength() = contentLength override fun source() = buffer() override fun read( sink: Buffer, byteCount: Long, ): Long {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:24:48 UTC 2024 - 5.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt
) { exchange.noNewExchangesOnConnection() } if ((code == 204 || code == 205) && response.body.contentLength() > 0L) { throw ProtocolException( "HTTP $code had non-zero Content-Length: ${response.body.contentLength()}", ) } return response } catch (e: IOException) { if (sendRequestException != null) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/MultipartBody.kt
} // We can't measure the body's size without the sizes of its components. val contentLength = body.contentLength() if (contentLength == -1L && countBytes) { byteCountBuffer!!.clear() return -1L } sink.write(CRLF) if (countBytes) { byteCount += contentLength } else { body.writeTo(sink) } sink.write(CRLF) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.9K bytes - Viewed (0)