Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 681 - 690 of 990 for Host (0.02 seconds)

  1. docs_src/path_operation_configuration/tutorial001_py39.py

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: set[str] = set()
    
    
    @app.post("/items/", response_model=Item, status_code=status.HTTP_201_CREATED)
    async def create_item(item: Item):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 401 bytes
    - Click Count (0)
  2. .github/ISSUE_TEMPLATE/20_contributor_feature_request.yml

          label: Context
          description: |
            How has this issue affected you? What are you trying to accomplish? What other alternatives have you considered?
            Providing context helps us come up with a solution that is most useful in the real world
        validations:
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Nov 27 15:48:22 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  3. .github/ISSUE_TEMPLATE/40_contributor_documentation.yml

        id: context
        attributes:
          label: Context (optional)
          description: |
            How has this issue affected you? What are you trying to accomplish?
            Providing context helps us come up with a solution that is most useful in the real world
        validations:
          required: false
      - type: input
        id: page
        attributes:
          label: Page with the problem
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Jan 15 10:01:01 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  4. build-logic/jvm/src/main/kotlin/gradlebuild.jvm-compile.gradle.kts

     */
    
    plugins {
        id("java-base")
    }
    
    // Creates the `jvmCompile` extension, which is a container for JvmCompilation instances.
    // JvmCompilation instances control the way each source set is compiled -- most importantly,
    // it controls the JVM version of the compilation. This allows each source set within a project
    // to compile to different JVM versions.
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Jun 24 13:46:12 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  5. docs_src/response_model/tutorial003_py310.py

        username: str
        password: str
        email: EmailStr
        full_name: str | None = None
    
    
    class UserOut(BaseModel):
        username: str
        email: EmailStr
        full_name: str | None = None
    
    
    @app.post("/user/", response_model=UserOut)
    async def create_user(user: UserIn) -> Any:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Jan 07 13:45:48 GMT 2023
    - 431 bytes
    - Click Count (0)
  6. docs_src/separate_openapi_schemas/tutorial001_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
    
    
    app = FastAPI()
    
    
    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Aug 25 19:10:22 GMT 2023
    - 451 bytes
    - Click Count (0)
  7. LICENSE

      The GNU Affero General Public License is a free, copyleft license for
    software and other kinds of works, specifically designed to ensure
    cooperation with the community in the case of network server software.
    
      The licenses for most software and other practical works are designed
    to take away your freedom to share and change the works.  By contrast,
    our General Public Licenses are intended to guarantee your freedom to
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 33.7K bytes
    - Click Count (0)
  8. docs_src/separate_openapi_schemas/tutorial002_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
    
    
    app = FastAPI(separate_input_output_schemas=False)
    
    
    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Aug 25 19:10:22 GMT 2023
    - 486 bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

                // END SNIPPET: clean
            }
    
            @Override
            public Collection<Alias> aliases() {
                return List.of(alias("pre-clean", BEFORE + Phase.CLEAN), alias("post-clean", AFTER + Phase.CLEAN));
            }
        }
    
        static class DefaultLifecycle implements Lifecycle {
            @Override
            public String id() {
                return Lifecycle.DEFAULT;
            }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 20.1K bytes
    - Click Count (0)
  10. docs/zh/docs/tutorial/response-status-code.md

    # 响应状态码
    
    与指定响应模型的方式相同,在以下任意*路径操作*中,可以使用 `status_code` 参数声明用于响应的 HTTP 状态码:
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * 等……
    
    {* ../../docs_src/response_status_code/tutorial001.py hl[6] *}
    
    /// note | 笔记
    
    注意,`status_code` 是(`get`、`post` 等)**装饰器**方法中的参数。与之前的参数和请求体不同,不是*路径操作函数*的参数。
    
    ///
    
    `status_code` 参数接收表示 HTTP 状态码的数字。
    
    /// info | 说明
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 3.6K bytes
    - Click Count (0)
Back to Top