Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 990 for fo2o (0.03 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

      fun writerEviction() {
        val headerBlock =
          headerEntries(
            "custom-foo",
            "custom-header",
            "custom-bar",
            "custom-header",
            "custom-baz",
            "custom-header",
          )
        bytesIn.writeByte(0x40) // Literal indexed
        bytesIn.writeByte(0x0a) // Literal name (len = 10)
        bytesIn.writeUtf8("custom-foo")
        bytesIn.writeByte(0x0d) // Literal value (len = 13)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dataclasses/test_tutorial001.py

    
    def test_post_item():
        response = client.post("/items/", json={"name": "Foo", "price": 3})
        assert response.status_code == 200
        assert response.json() == {
            "name": "Foo",
            "price": 3,
            "description": None,
            "tax": None,
        }
    
    
    def test_post_invalid_item():
        response = client.post("/items/", json={"name": "Foo", "price": "invalid price"})
        assert response.status_code == 422
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. docs_src/handling_errors/tutorial001.py

    from fastapi import FastAPI, HTTPException
    
    app = FastAPI()
    
    items = {"foo": "The Foo Wrestlers"}
    
    
    @app.get("/items/{item_id}")
    async def read_item(item_id: str):
        if item_id not in items:
            raise HTTPException(status_code=404, detail="Item not found")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 299 bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/DfsTest.java

            };
            dfs.cache(context, "\\" + hostname + "\\" + root + path, dr);
            DfsReferralData ref = dfs.resolve(context, hostname, root, path + "lalala\\foo\\");
            assertNotNull(ref);
            DfsReferralData ref2 = dfs.resolve(context, hostname, root, path + "lalala\\foo");
            assertNotNull(ref2);
        }
    
    
        /**
         * @return
         * @throws URISyntaxException
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 01 09:46:04 UTC 2020
    - 13.5K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_body_nested_models/test_tutorial009.py

    
    def test_post_invalid_body(client: TestClient):
        data = {"foo": 2.2, "3": 3.3}
        response = client.post("/index-weights/", json=data)
        assert response.status_code == 422, response.text
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "int_parsing",
                        "loc": ["body", "foo", "[key]"],
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/MediaTypeTest.kt

      }
    
      @Test fun testParse() {
        val mediaType = parse("text/plain;boundary=foo;charset=utf-8")
        assertEquals("text", mediaType.type)
        assertEquals("plain", mediaType.subtype)
        assertEquals("UTF-8", mediaType.charsetName())
        assertEquals("text/plain;boundary=foo;charset=utf-8", mediaType.toString())
        assertEquals(mediaType, parse("text/plain;boundary=foo;charset=utf-8"))
        assertEquals(
          mediaType.hashCode(),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbNamedPipe.java

     * new SmbNamedPipe( "smb1://server/IPC$/PIPE/foo",
     *         SmbNamedPipe.PIPE_TYPE_RDWR |
     *         SmbNamedPipe.PIPE_TYPE_CALL );
     * </pre></td><td>
     * Open the Named Pipe foo for reading and writing. The pipe will behave like the <code>CallNamedPipe</code> interface.
     * </td></tr>
     * <tr><td width="20%"><pre>
     * new SmbNamedPipe( "smb1://server/IPC$/foo",
     *         SmbNamedPipe.PIPE_TYPE_RDWR |
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.3K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_schema_extra_example/test_tutorial004.py

    client = TestClient(app)
    
    
    # Test required and embedded body parameters with no bodies sent
    def test_post_body_example():
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
            },
        )
        assert response.status_code == 200
    
    
    def test_openapi_schema():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/body-multiple-params.md

    ```
    
    ////
    
    👉 đŸ’ŧ **FastAPI** 🔜 ⌛ đŸ’Ē 💖:
    
    ```JSON hl_lines="2"
    {
        "item": {
            "name": "Foo",
            "description": "The pretender",
            "price": 42.0,
            "tax": 3.2
        }
    }
    ```
    
    ↩ī¸:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    ## 🌃
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_additional_responses/test_tutorial002.py

    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"id": "foo", "value": "there goes my hero"}
    
    
    def test_path_operation_img():
        shutil.copy("./docs/en/docs/img/favicon.png", "./image.png")
        response = client.get("/items/foo?img=1")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.6K bytes
    - Viewed (0)
Back to top