Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for mediaType (0.06 sec)

  1. guava/src/com/google/common/net/MediaType.java

        MediaType mediaType = addKnownType(new MediaType(type, subtype, UTF_8_CONSTANT_PARAMETERS));
        mediaType.parsedCharset = Optional.of(UTF_8);
        return mediaType;
      }
    
      private static MediaType addKnownType(MediaType mediaType) {
        KNOWN_TYPES.put(mediaType, mediaType);
        return mediaType;
      }
    
      /*
       * The following constants are grouped by their type and ordered alphabetically by the constant
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 26 19:15:09 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/MediaTypeTest.java

            MediaType.parse("text/plain; a=1; a=2").withParameter("a", "3"));
        assertEquals(
            MediaType.parse("text/plain; a=1; a=2; b=3"),
            MediaType.parse("text/plain; a=1; a=2").withParameter("b", "3"));
      }
    
      public void testWithParameter_invalidAttribute() {
        MediaType mediaType = MediaType.parse("text/plain");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

    import java.net.UnknownHostException
    import java.util.concurrent.CountDownLatch
    import okhttp3.CacheControl
    import okhttp3.Call
    import okhttp3.Callback
    import okhttp3.Dns
    import okhttp3.HttpUrl
    import okhttp3.MediaType
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.Response
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Oct 31 09:27:31 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

    import org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor;
    import org.apache.tika.io.TemporaryResources;
    import org.apache.tika.io.TikaInputStream;
    import org.apache.tika.metadata.Metadata;
    import org.apache.tika.mime.MediaType;
    import org.apache.tika.parser.CompositeParser;
    import org.apache.tika.parser.ParseContext;
    import org.apache.tika.parser.Parser;
    import org.apache.tika.parser.PasswordProvider;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 25K bytes
    - Viewed (0)
  5. cmd/auth-handler.go

    	return ok
    }
    
    // Verify if request has AWS Post policy Signature Version '4'.
    func isRequestPostPolicySignatureV4(r *http.Request) bool {
    	mediaType, _, err := mime.ParseMediaType(r.Header.Get(xhttp.ContentType))
    	if err != nil {
    		return false
    	}
    	return mediaType == "multipart/form-data" && r.Method == http.MethodPost
    }
    
    // Verify if the request has AWS Streaming Signature Version '4'. This is only valid for 'PUT' operation.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  6. fastapi/params.py

            include_in_schema: bool = True,
            json_schema_extra: Union[Dict[str, Any], None] = None,
            **extra: Any,
        ):
            self.embed = embed
            self.media_type = media_type
            if example is not _Unset:
                warnings.warn(
                    "`example` has been deprecated, please use `examples` instead",
                    category=DeprecationWarning,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 18:06:20 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  7. fastapi/param_functions.py

                """
            ),
        ],
    ) -> Any:
        return params.Body(
            default=default,
            default_factory=default_factory,
            embed=embed,
            media_type=media_type,
            alias=alias,
            alias_priority=alias_priority,
            validation_alias=validation_alias,
            serialization_alias=serialization_alias,
            title=title,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 62.5K bytes
    - Viewed (0)
  8. fastapi/openapi/utils.py

                            )
                            media_type = route_response_media_type or "application/json"
                            additional_schema = (
                                process_response.setdefault("content", {})
                                .setdefault(media_type, {})
                                .setdefault("schema", {})
                            )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  9. docs/ja/docs/advanced/custom-response.md

    直接返すことができます。
    
    以下のパラメータを受け付けます。
    
    * `content` - `str` か `bytes`。
    * `status_code` - `int` のHTTPステータスコード。
    * `headers` - 文字列の `dict` 。
    * `media_type` - メディアタイプを示す `str` 。例えば `"text/html"` 。
    
    FastAPI (実際にはStarlette) は自動的にContent-Lengthヘッダーを含みます。また、media_typeに基づいたContent-Typeヘッダーを含み、テキストタイプのためにcharsetを追加します。
    
    ```Python hl_lines="1  18"
    {!../../docs_src/response_directly/tutorial002.py!}
    ```
    
    ### `HTMLResponse`
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. docs/zh/docs/advanced/custom-response.md

    你可以直接返回它。
    
    `Response` 类接受如下参数:
    
    * `content` - 一个 `str` 或者 `bytes`。
    * `status_code` - 一个 `int` 类型的 HTTP 状态码。
    * `headers` - 一个由字符串组成的 `dict`。
    * `media_type` - 一个给出媒体类型的 `str`,比如 `"text/html"`。
    
    FastAPI(实际上是 Starlette)将自动包含 Content-Length 的头。它还将包含一个基于 media_type 的 Content-Type 头,并为文本类型附加一个字符集。
    
    
    ```Python hl_lines="1  18"
    {!../../docs_src/response_directly/tutorial002.py!}
    ```
    
    ### `HTMLResponse`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top