Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for content_type (0.08 sec)

  1. docs/uk/docs/tutorial/request-files.md

    ### `UploadFile`
    
    `UploadFile` має такі атрибути:
    
    * `filename`: Рядок `str` з оригінальною назвою файлу, який був завантажений (наприклад, `myimage.jpg`).
    * `content_type`: Рядок `str` з MIME-типом (наприклад, `image/jpeg`).
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Feb 22 22:01:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/request-files.md

    ### `UploadFile`
    
    `UploadFile` имеет следующие атрибуты:
    
    * `filename`: Строка `str` с исходным именем файла, который был загружен (например, `myimage.jpg`).
    * `content_type`: Строка `str` с типом содержимого (MIME type / media type) (например, `image/jpeg`).
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. docs/ja/docs/advanced/custom-response.md

    /// tip | 豆知識
    
    `ORJSONResponse` は、現在はFastAPIのみで利用可能で、Starletteでは利用できません。
    
    ///
    
    ## HTMLレスポンス
    
    **FastAPI** からHTMLを直接返す場合は、`HTMLResponse` を使います。
    
    * `HTMLResponse` をインポートする。
    * *path operation* のパラメータ `content_type` に `HTMLResponse` を渡す。
    
    {* ../../docs_src/custom_response/tutorial002.py hl[2,7] *}
    
    /// info | 情報
    
    パラメータ `response_class` は、レスポンスの「メディアタイプ」を定義するために利用されます。
    
    この場合、HTTPヘッダー `Content-Type` には `text/html` がセットされます。
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java

            final Map<String, String> params = new HashMap<>(crawlingConfig.getConfigParameterMap(ConfigName.CONFIG));
            params.put(ExtractData.RESOURCE_NAME_KEY, getResourceName(responseData));
            params.put(ExtractData.CONTENT_TYPE, responseData.getMimeType());
            params.put(ExtractData.CONTENT_ENCODING, responseData.getCharSet());
            params.put(ExtractData.URL, responseData.getUrl());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/HttpHeaders.java

      /** The HTTP {@code Content-Length} header field name. */
      public static final String CONTENT_LENGTH = "Content-Length";
    
      /** The HTTP {@code Content-Type} header field name. */
      public static final String CONTENT_TYPE = "Content-Type";
    
      /** The HTTP {@code Date} header field name. */
      public static final String DATE = "Date";
    
      /** The HTTP {@code Pragma} header field name. */
      public static final String PRAGMA = "Pragma";
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Mar 27 20:37:16 UTC 2025
    - 35.4K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt

          val buffer = Buffer().writeString(this, charset)
          return buffer.asResponseBody(finalContentType, buffer.size)
        }
    
        /** Returns a new response body that transmits this byte array. */
        @JvmStatic
        @JvmName("create")
        fun ByteArray.toResponseBody(contentType: MediaType? = null): ResponseBody =
          Buffer()
            .write(this)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/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: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 19K bytes
    - Viewed (0)
  8. 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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartBody.kt

                .write(COLONSPACE)
                .writeUtf8(headers.value(h))
                .write(CRLF)
            }
          }
    
          val contentType = body.contentType()
          if (contentType != null) {
            sink
              .writeUtf8("Content-Type: ")
              .writeUtf8(contentType.toString())
              .write(CRLF)
          }
    
          // We can't measure the body's size without the sizes of its components.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/MultipartBodyTest.kt

            .Builder("123")
            .addPart("Hello, World!".toRequestBody(null))
            .build()
        assertThat(body.boundary).isEqualTo("123")
        assertThat(body.type).isEqualTo(MultipartBody.MIXED)
        assertThat(body.contentType().toString())
          .isEqualTo("multipart/mixed; boundary=123")
        assertThat(body.parts.size).isEqualTo(1)
        assertThat(body.contentLength()).isEqualTo(33L)
        val buffer = Buffer()
        body.writeTo(buffer)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top