Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2001 - 2010 of 4,515 for fromP2 (0.17 seconds)

  1. docs_src/path_operation_configuration/tutorial006_py39.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/", tags=["items"])
    async def read_items():
        return [{"name": "Foo", "price": 42}]
    
    
    @app.get("/users/", tags=["users"])
    async def read_users():
        return [{"username": "johndoe"}]
    
    
    @app.get("/elements/", tags=["items"], deprecated=True)
    async def read_elements():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 365 bytes
    - Click Count (0)
  2. docs_src/events/tutorial002_py39.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.on_event("shutdown")
    def shutdown_event():
        with open("log.txt", mode="a") as log:
            log.write("Application shutdown")
    
    
    @app.get("/items/")
    async def read_items():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 255 bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/bigger-applications.md

    然后我们对 `users` 模块进行相同的操作。
    
    我们也可以像这样导入它们:
    
    ```Python
    from app.routers import items, users
    ```
    
    /// info
    
    第一个版本是「相对导入」:
    
    ```Python
    from .routers import items, users
    ```
    
    第二个版本是「绝对导入」:
    
    ```Python
    from app.routers import items, users
    ```
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun May 11 13:37:26 GMT 2025
    - 18.4K bytes
    - Click Count (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverRequest.java

             * Sets the direct dependencies. If both a root dependency and direct dependencies are given in the request, the
             * direct dependencies from the request will be merged with the direct dependencies from the root dependency's
             * artifact descriptor, giving higher priority to the dependencies from the request.
             *
             * @param dependencies the direct dependencies, may be {@code null}
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 23K bytes
    - Click Count (0)
  5. cmd/handler-utils.go

    // All values stored with a key starting with one of the following prefixes
    // must be extracted from the header.
    var userMetadataKeyPrefixes = []string{
    	"x-amz-meta-",
    	"x-minio-meta-",
    }
    
    // extractMetadataFromReq extracts metadata from HTTP header and HTTP queryString.
    func extractMetadataFromReq(ctx context.Context, r *http.Request) (metadata map[string]string, err error) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 16.4K bytes
    - Click Count (1)
  6. src/main/java/jcifs/internal/smb1/net/NetServerEnum2Response.java

    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.FileEntry;
    import jcifs.util.Hexdump;
    
    /**
     * SMB1 NetServerEnum2 transaction response implementation.
     * Handles responses from network server enumeration operations, parsing server
     * information returned by the NetServerEnum2 transaction in SMB1 protocol.
     *
     * @author mbechler
     *
     */
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6K bytes
    - Click Count (0)
  7. docs/es/docs/tutorial/path-operation-configuration.md

    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    Ese código de estado se usará en el response y se añadirá al esquema de OpenAPI.
    
    /// note | Detalles Técnicos
    
    También podrías usar `from starlette import status`.
    
    **FastAPI** ofrece el mismo `starlette.status` como `fastapi.status` solo por conveniencia para ti, el desarrollador. Pero viene directamente de Starlette.
    
    ///
    
    ## Tags { #tags }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/path-operation-configuration.md

    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    Esse código de status será usado na resposta e será adicionado ao esquema OpenAPI.
    
    /// note | Detalhes Técnicos
    
    Você também poderia usar `from starlette import status`.
    
    **FastAPI** fornece o mesmo `starlette.status` como `fastapi.status` apenas como uma conveniência para você, o desenvolvedor. Mas vem diretamente do Starlette.
    
    ///
    
    ## Tags { #tags }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/primitives/Primitives.java

    @GwtCompatible
    public final class Primitives {
      private Primitives() {}
    
      /** A map from primitive types to their corresponding wrapper types. */
      // It's a constant, and we can't use ImmutableMap here without creating a circular dependency.
      @SuppressWarnings("ConstantCaseForConstants")
      private static final Map<Class<?>, Class<?>> PRIMITIVE_TO_WRAPPER_TYPE;
    
      /** A map from wrapper types to their corresponding primitive types. */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 28 01:26:26 GMT 2024
    - 4.8K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_body_multiple_params/test_tutorial002.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_multiple_params.{request.param}")
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 11K bytes
    - Click Count (0)
Back to Top