- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 419 for ContentType (0.26 sec)
-
platforms/software/resources/src/main/java/org/gradle/internal/resource/UriTextResource.java
paramValue.setLength(0); int separator = contentType.indexOf("=", pos); if (separator < 0) { separator = contentType.length(); } paramName.append(contentType.substring(pos, separator).trim()); if (separator >= contentType.length() - 1) { return contentType.length(); } int startValue = separator + 1; int endValue;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 11.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/negotiate.go
} info = mediaTypes[0] } return n.serializer.EncoderForVersion(info.Serializer, n.encode), nil } func (n *clientNegotiator) Decoder(contentType string, params map[string]string) (Decoder, error) { mediaTypes := n.serializer.SupportedMediaTypes() info, ok := SerializerInfoForMediaType(mediaTypes, contentType) if !ok { if len(contentType) != 0 || len(mediaTypes) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 29 19:55:06 UTC 2020 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/negotiate_test.go
serializer runtime.Serializer contentType string params map[string]string errFn func(error) bool }{ // pick a default { req: &http.Request{}, contentType: "application/json", ns: &fakeNegotiater{serializer: fakeCodec, types: []string{"application/json"}}, serializer: fakeCodec, }, { accept: "", contentType: "application/json",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 10 10:53:34 UTC 2019 - 9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RequestTest.kt
val contentType = "text/plain; charset=utf-16be".toMediaType() val body = "\u0800".toRequestBody(contentType) assertThat(body.contentType()).isEqualTo(contentType) assertThat(body.contentLength()).isEqualTo(2) assertThat(bodyToHex(body)).isEqualTo("0800") } @Test fun byteArray() { val contentType = "text/plain".toMediaType() val body: RequestBody = "abc".toByteArray().toRequestBody(contentType)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 16.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-ResponseBodyCommon.kt
internal fun ByteArray.commonToResponseBody(contentType: MediaType?): ResponseBody { return Buffer() .write(this) .asResponseBody(contentType, size.toLong()) } internal fun ByteString.commonToResponseBody(contentType: MediaType?): ResponseBody { return Buffer() .write(this) .asResponseBody(contentType, size.toLong()) } internal fun BufferedSource.commonAsResponseBody(
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/rest/streamer.go
if err = s.ResponseChecker.Check(resp); err != nil { return nil, false, "", err } } contentType = s.ContentType if len(contentType) == 0 { contentType = resp.Header.Get("Content-Type") if len(contentType) > 0 { contentType = strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0]) } } flush = s.Flush stream = resp.Body return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 16:43:09 UTC 2023 - 3.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/RequestBody.kt
fun ByteString.toRequestBody(contentType: MediaType? = null): RequestBody = commonToRequestBody(contentType) /** Returns a new request body that transmits this. */ @JvmStatic @JvmName("create") @ExperimentalOkHttpApi fun FileDescriptor.toRequestBody(contentType: MediaType? = null): RequestBody { return object : RequestBody() { override fun contentType() = contentType
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Thu Jan 25 14:41:37 UTC 2024 - 9.6K bytes - Viewed (0) -
platforms/software/resources/src/main/java/org/gradle/internal/resource/DownloadedUriTextResource.java
private final String contentType; private final File downloadedResource; public DownloadedUriTextResource(String description, URI sourceUri, String contentType, File downloadedResource, RelativeFilePathResolver resolver) { super(description, sourceUri, resolver); this.contentType = contentType; this.downloadedResource = downloadedResource; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/software/resources/src/main/java/org/gradle/internal/resource/metadata/DefaultExternalResourceMetaData.java
this(location, lastModified > 0 ? new Date(lastModified) : null, contentLength, contentType, etag, sha1, null, false); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 2.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/ResponseBody.kt
fun ByteString.toResponseBody(contentType: MediaType? = null): ResponseBody = commonToResponseBody(contentType) /** Returns a new response body that transmits this source. */ @JvmStatic @JvmName("create") fun BufferedSource.asResponseBody( contentType: MediaType? = null, contentLength: Long = -1L, ): ResponseBody = commonAsResponseBody(contentType, contentLength) @JvmStatic
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.7K bytes - Viewed (0)