- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 346 for contentType (0.06 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/CommonRequestBodyTest.kt
fun correctContentType() { val body = "Body" val requestBody = body.toRequestBody(MediaType("text/plain", "text", "plain", arrayOf())) val contentType = requestBody.contentType()!! assertThat(contentType.mediaType).isEqualTo("text/plain; charset=utf-8") assertThat(contentType.parameter("charset")).isEqualTo("utf-8") }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 1.1K bytes - Click Count (0) -
internal/event/event.go
type Object struct { Key string `json:"key"` Size int64 `json:"size,omitempty"` ETag string `json:"eTag,omitempty"` ContentType string `json:"contentType,omitempty"` UserMetadata map[string]string `json:"userMetadata,omitempty"` VersionID string `json:"versionId,omitempty"` Sequencer string `json:"sequencer"` }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Jun 20 00:53:08 GMT 2023 - 3.4K bytes - Click Count (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
!contentEncoding.equals("gzip", ignoreCase = true) } private fun bodyIsStreaming(response: Response): Boolean { val contentType = response.body.contentType() return contentType != null && contentType.type == "text" && contentType.subtype == "event-stream" } companion object
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Nov 07 02:57:33 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/CrawlTestBase.java
protected static Response deleteMethod(final String path) { return given().contentType("application/json").header("Authorization", getTestToken()).delete(path); } protected static void deleteDocuments(final String queryString) { List<String> docIds = new ArrayList<>(); Response response = given().contentType("application/json") .param("scroll", "1m")Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 10.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt
assertThat(source.readUtf8()).isEqualTo("") } @Test fun sourceClosesUnderlyingSource() { var closed = false val body: ResponseBody = object : ResponseBody() { override fun contentType(): MediaType? = null override fun contentLength(): Long = 5 override fun source(): BufferedSource { val source = Buffer().writeUtf8("hello")
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/storage/S3StorageClient.java
} @Override public void uploadObject(final String objectName, final InputStream inputStream, final long size, final String contentType) { try { final PutObjectRequest request = PutObjectRequest.builder().bucket(bucket).key(objectName).contentType(contentType).contentLength(size).build(); s3Client.putObject(request, RequestBody.fromInputStream(inputStream, size));Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 13 02:21:17 GMT 2025 - 10.9K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingResponseBody.kt
open class ForwardingResponseBody( delegate: ResponseBody?, ) : ResponseBody() { private val delegate: ResponseBody fun delegate(): ResponseBody = delegate override fun contentType(): MediaType? = delegate.contentType() override fun contentLength(): Long = delegate.contentLength() override fun source(): BufferedSource = delegate.source()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.2K bytes - Click Count (0) -
src/main/webapp/WEB-INF/view/common/admin/footer.jsp
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> <footer class="main-footer"> <div class="float-right d-none d-sm-inline-block"></div> <la:message key="labels.footer.copyright" />
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Feb 12 20:25:27 GMT 2020 - 213 bytes - Click Count (0) -
src/main/webapp/WEB-INF/orig/view/footer.jsp
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> <footer role="contentinfo"> <div class="container text-center"> <p class="text-muted"> <la:message key="labels.footer.copyright" /> </p> </div>
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 12 06:14:02 GMT 2025 - 233 bytes - Click Count (0) -
samples/static-server/src/main/java/okhttp3/sample/SampleServer.java
.setStatus("HTTP/1.1 200") .setBody(fileToBytes(file)) .addHeader("content-type: " + contentType(path)); } private Buffer fileToBytes(File file) throws IOException { Buffer result = new Buffer(); result.writeAll(Okio.source(file)); return result; } private String contentType(String path) { if (path.endsWith(".png")) return "image/png";
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 11 02:37:00 GMT 2026 - 5.3K bytes - Click Count (0)