Search Options

Results per page
Sort
Preferred Languages
Advance

Results 741 - 750 of 1,087 for FoO (0.02 sec)

  1. 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)
  2. tests/test_ws_router.py

            await websocket.close(1002, "foo")
    
        myapp = make_app(exception_handlers={CustomError: custom_handler})
        client = TestClient(myapp)
        with pytest.raises(WebSocketDisconnect) as e:
            with client.websocket_connect("/custom_error/"):
                pass  # pragma: no cover
        assert e.value.code == 1002
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  3. src/archive/zip/zip_test.go

    func TestFileHeaderRoundTrip(t *testing.T) {
    	fh := &FileHeader{
    		Name:             "foo.txt",
    		UncompressedSize: 987654321,
    		ModifiedTime:     1234,
    		ModifiedDate:     5678,
    	}
    	testHeaderRoundTrip(fh, fh.UncompressedSize, uint64(fh.UncompressedSize), t)
    }
    
    func TestFileHeaderRoundTrip64(t *testing.T) {
    	fh := &FileHeader{
    		Name:               "foo.txt",
    		UncompressedSize64: 9876543210,
    		ModifiedTime:       1234,
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

                        "-DvalFound=s${foo}i",
                        "-DvalNotFound=s${foz}i",
                        "-DvalRootDirectory=${session.rootDirectory}/.mvn/foo",
                        "-DvalTopDirectory=${session.topDirectory}/pom.xml",
                        "-f",
                        "${session.rootDirectory}/my-child",
                        "prefix:3.0.0:${foo}",
                        "validate"
                    },
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. docs_src/schema_extra_example/tutorial005.py

            openapi_examples={
                "normal": {
                    "summary": "A normal example",
                    "description": "A **normal** item works correctly.",
                    "value": {
                        "name": "Foo",
                        "description": "A very nice Item",
                        "price": 35.4,
                        "tax": 3.2,
                    },
                },
                "converted": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_events/test_tutorial002.py

    
    def test_events(app: FastAPI):
        with TestClient(app) as client:
            response = client.get("/items/")
            assert response.status_code == 200, response.text
            assert response.json() == [{"name": "Foo"}]
        with open("log.txt") as log:
            assert "Application shutdown" in log.read()
    
    
    def test_openapi_schema(app: FastAPI):
        with TestClient(app) as client:
            response = client.get("/openapi.json")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/test/resources/poms/validation/bad-modelVersion.xml

    KIND, either express or implied.  See the License for the
    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)
  8. compat/maven-model-builder/src/test/resources/poms/validation/bad-version.xml

    KIND, either express or implied.  See the License for the
    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)
  9. compat/maven-model-builder/src/test/resources/poms/validation/modelVersion-4_0.xml

    KIND, either express or implied.  See the License for the
    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)
  10. tests/test_tutorial/test_dependencies/test_tutorial008c_an.py

    def get_client():
        from docs_src.dependencies.tutorial008c_an import app
    
        client = TestClient(app)
        return client
    
    
    def test_get_no_item(client: TestClient):
        response = client.get("/items/foo")
        assert response.status_code == 404, response.text
        assert response.json() == {"detail": "Item not found, there's only a plumbus here"}
    
    
    def test_get(client: TestClient):
        response = client.get("/items/plumbus")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top