Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 499 for bar5 (0.06 sec)

  1. docs_src/additional_status_codes/tutorial001_an.py

    from typing import Union
    
    from fastapi import Body, FastAPI, status
    from fastapi.responses import JSONResponse
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}}
    
    
    @app.put("/items/{item_id}")
    async def upsert_item(
        item_id: str,
        name: Annotated[Union[str, None], Body()] = None,
        size: Annotated[Union[int, None], Body()] = None,
    ):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 734 bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/header-params.md

    ```
    
    ////
    
    If you communicate with that *path operation* sending two HTTP headers like:
    
    ```
    X-Token: foo
    X-Token: bar
    ```
    
    The response would be like:
    
    ```JSON
    {
        "X-Token values": [
            "bar",
            "foo"
        ]
    }
    ```
    
    ## Recap
    
    Declare headers with `Header`, using the same common pattern as `Query`, `Path` and `Cookie`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. docs_src/schema_extra_example/tutorial005_py310.py

                    "summary": "An example with converted data",
                    "description": "FastAPI can convert price `strings` to actual `numbers` automatically",
                    "value": {
                        "name": "Bar",
                        "price": "35.4",
                    },
                },
                "invalid": {
                    "summary": "Invalid data is rejected with an error",
                    "value": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/test/resources/poms/validation/bad-modelVersion.xml

    specific language governing permissions and limitations
    under the License.
    -->
    
    <project>
      <modelVersion>99.0.0</modelVersion>
      <groupId>foo</groupId>
      <artifactId>bar</artifactId>
      <version>0.1</version>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 907 bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/resources/poms/validation/bad-version.xml

    specific language governing permissions and limitations
    under the License.
    -->
    
    <project>
      <modelVersion>4.0.0</modelVersion>
      <groupId>foo</groupId>
      <artifactId>bar</artifactId>
      <version>this\is/bad</version>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 914 bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/resources/poms/validation/modelVersion-4_0.xml

    specific language governing permissions and limitations
    under the License.
    -->
    
    <project>
      <modelVersion>4.0</modelVersion>
      <groupId>foo</groupId>
      <artifactId>bar</artifactId>
      <version>0.1</version>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 904 bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/MoreFilesTest.java

        assertEquals("", MoreFiles.getFileExtension(FS.getPath(".blah.")));
        assertEquals("", MoreFiles.getFileExtension(root().resolve("foo.bar/blah")));
        assertEquals("", MoreFiles.getFileExtension(root().resolve("foo/.bar/blah")));
      }
    
      public void testGetNameWithoutExtension() {
        assertEquals("", MoreFiles.getNameWithoutExtension(FS.getPath(".txt")));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/header-params.md

    ```Python hl_lines="9"
    {!> ../../docs_src/header_params/tutorial003.py!}
    ```
    
    ////
    
    与*路径操作*通信时,以下面的方式发送两个 HTTP 请求头:
    
    ```
    X-Token: foo
    X-Token: bar
    ```
    
    响应结果是:
    
    ```JSON
    {
        "X-Token values": [
            "bar",
            "foo"
        ]
    }
    ```
    
    ## 小结
    
    使用 `Header` 声明请求头的方式与 `Query`、`Path` 、`Cookie` 相同。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt

          .isEqualTo("example.com")
        assertThat(publicSuffixDatabase.getEffectiveTldPlusOne("foo.example.com"))
          .isEqualTo("example.com")
        assertThat(publicSuffixDatabase.getEffectiveTldPlusOne("foo.bar.square.com"))
          .isEqualTo("bar.square.com")
        assertThat(publicSuffixDatabase.getEffectiveTldPlusOne("foo.my.square.com"))
          .isEqualTo("foo.my.square.com")
      }
    
      @Test fun wildcardMatch() {
        val buffer =
          Buffer()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/query-params-str-validations.md

    ```
    
    そしてURLは以下です:
    
    ```
    http://localhost:8000/items/?q=foo&q=bar
    ```
    
    複数の*クエリパラメータ*の値`q`(`foo`と`bar`)を*path operation関数*内で*関数パラメータ*`q`としてPythonの`list`を受け取ることになります。
    
    そのため、このURLのレスポンスは以下のようになります:
    
    ```JSON
    {
      "q": [
        "foo",
        "bar"
      ]
    }
    ```
    
    /// tip | "豆知識"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top