Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1791 - 1800 of 3,801 for getT (0.03 sec)

  1. docs_src/response_model/tutorial003_05.py

    from typing import Union
    
    from fastapi import FastAPI, Response
    from fastapi.responses import RedirectResponse
    
    app = FastAPI()
    
    
    @app.get("/portal", response_model=None)
    async def get_portal(teleport: bool = False) -> Union[Response, dict]:
        if teleport:
            return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 405 bytes
    - Viewed (0)
  2. docs_src/header_param_models/tutorial002_pv1_an_py310.py

        class Config:
            extra = "forbid"
    
        host: str
        save_data: bool
        if_modified_since: str | None = None
        traceparent: str | None = None
        x_tag: list[str] = []
    
    
    @app.get("/items/")
    async def read_items(headers: Annotated[CommonHeaders, Header()]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 436 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_custom_response/test_tutorial009.py

        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jul 03 19:51:28 UTC 2021
    - 487 bytes
    - Viewed (0)
  4. docs_src/header_param_models/tutorial001_an.py

    app = FastAPI()
    
    
    class CommonHeaders(BaseModel):
        host: str
        save_data: bool
        if_modified_since: Union[str, None] = None
        traceparent: Union[str, None] = None
        x_tag: List[str] = []
    
    
    @app.get("/items/")
    async def read_items(headers: Annotated[CommonHeaders, Header()]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 446 bytes
    - Viewed (0)
  5. docs_src/header_param_models/tutorial002_pv1_an_py39.py

        class Config:
            extra = "forbid"
    
        host: str
        save_data: bool
        if_modified_since: Union[str, None] = None
        traceparent: Union[str, None] = None
        x_tag: list[str] = []
    
    
    @app.get("/items/")
    async def read_items(headers: Annotated[CommonHeaders, Header()]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 455 bytes
    - Viewed (0)
  6. docs_src/query_param_models/tutorial001_py310.py

    
    class FilterParams(BaseModel):
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: list[str] = []
    
    
    @app.get("/items/")
    async def read_items(filter_query: FilterParams = Query()):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 422 bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java

            final String logFilePath = systemHelper.getLogFilePath();
            if (StringUtil.isNotBlank(logFilePath) && isLogFilename(filename)) {
                final Path path = Paths.get(logFilePath, filename);
                return asStream(filename).contentTypeOctetStream().stream(out -> {
                    try (InputStream in = Files.newInputStream(path)) {
                        out.write(in);
                    }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/MediaType.kt

      companion object {
        /**
         * Returns a media type for this string.
         *
         * @throws IllegalArgumentException if this is not a well-formed media type.
         */
        @JvmStatic
        @JvmName("get")
        fun String.toMediaType(): MediaType = commonToMediaType()
    
        /** Returns a media type for this, or null if this is not a well-formed media type. */
        @JvmStatic
        @JvmName("parse")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ListMultimap.java

     * ordering of values for a given key. See the {@link Multimap} documentation for information common
     * to all multimaps.
     *
     * <p>The {@link #get}, {@link #removeAll}, and {@link #replaceValues} methods each return a {@link
     * List} of values. Though the method signature doesn't say so explicitly, the map returned by
     * {@link #asMap} has {@code List} values.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ListMultimap.java

     * ordering of values for a given key. See the {@link Multimap} documentation for information common
     * to all multimaps.
     *
     * <p>The {@link #get}, {@link #removeAll}, and {@link #replaceValues} methods each return a {@link
     * List} of values. Though the method signature doesn't say so explicitly, the map returned by
     * {@link #asMap} has {@code List} values.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 3.5K bytes
    - Viewed (0)
Back to top