Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,376 for example1 (0.65 sec)

  1. docs_src/behind_a_proxy/tutorial003_py39.py

    from fastapi import FastAPI, Request
    
    app = FastAPI(
        servers=[
            {"url": "https://stag.example.com", "description": "Staging environment"},
            {"url": "https://prod.example.com", "description": "Production environment"},
        ],
        root_path="/api/v1",
    )
    
    
    @app.get("/app")
    def read_main(request: Request):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 405 bytes
    - Viewed (0)
  2. docs_src/behind_a_proxy/tutorial004_py39.py

    from fastapi import FastAPI, Request
    
    app = FastAPI(
        servers=[
            {"url": "https://stag.example.com", "description": "Staging environment"},
            {"url": "https://prod.example.com", "description": "Production environment"},
        ],
        root_path="/api/v1",
        root_path_in_servers=False,
    )
    
    
    @app.get("/app")
    def read_main(request: Request):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 437 bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java

            assertNull(auth.getUser());
            auth.setUser("");
            assertEquals("", auth.getUser());
    
            // Realm accessors
            assertNull(auth.getRealm());
            auth.setRealm("EXAMPLE.COM");
            assertEquals("EXAMPLE.COM", auth.getRealm());
    
            // Service accessors
            assertEquals("cifs", auth.getService());
            auth.setService("");
            assertEquals("", auth.getService());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/encoder.md

    For example, if you need to store it in a database.
    
    For that, **FastAPI** provides a `jsonable_encoder()` function.
    
    ## Using the `jsonable_encoder` { #using-the-jsonable-encoder }
    
    Let's imagine that you have a database `fake_db` that only receives JSON compatible data.
    
    For example, it doesn't receive `datetime` objects, as those are not compatible with JSON.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformUrlTest.kt

          listOf(
            "Parsing: <http://example\t.\norg> against <http://example.org/foo/bar>",
            "Parsing: <http://f:0/c> against <http://example.org/foo/bar>",
            "Parsing: <http://f:00000000000000/c> against <http://example.org/foo/bar>",
            "Parsing: <http://f:\n/c> against <http://example.org/foo/bar>",
            "Parsing: <http://f:999999/c> against <http://example.org/foo/bar>",
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. fess-crawler/src/test/resources/org/codelibs/fess/crawler/helper/robots_malformed.txt

    # Case 10: Multiple User-agents in sequence
    User-agent: Bot1
    User-agent: Bot2
    User-agent: Bot3
    Disallow: /shared/
    
    # Case 11: Sitemap with various formats
    Sitemap: http://example.com/sitemap.xml
    sitemap: http://example.com/sitemap2.xml
    SITEMAP: http://example.com/sitemap3.xml
    Sitemap:    # empty sitemap (should be ignored)
    Sitemap: not-a-valid-url
    
    # Case 12: Malformed lines that should be completely ignored
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 14 12:52:01 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  7. docs_src/metadata/tutorial001_py39.py

        description=description,
        summary="Deadpool's favorite app. Nuff said.",
        version="0.0.1",
        terms_of_service="http://example.com/terms/",
        contact={
            "name": "Deadpoolio the Amazing",
            "url": "http://x-force.example.com/contact/",
            "email": "dp@x-force.example.com",
        },
        license_info={
            "name": "Apache 2.0",
            "url": "https://www.apache.org/licenses/LICENSE-2.0.html",
        },
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 805 bytes
    - Viewed (0)
  8. tests/test_tutorial/test_background_tasks/test_tutorial001.py

        if log.is_file():
            os.remove(log)  # pragma: no cover
        response = client.post("/send-notification/foo@example.com")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Notification sent in the background"}
        with open("./log.txt") as f:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 583 bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/RuleManagerImplTest.java

            assertEquals("fileRule", rule.getRuleId());
        }
    
        public void test_getRule_sitemaps1() {
            final ResponseData responseData = new ResponseData();
            responseData.setUrl("http://www.example.com/sitemap1.xml");
            File file = ResourceUtil.getResourceAsFile("sitemaps/sitemap1.xml");
            responseData.setResponseBody(file, false);
            final Rule rule = ruleManager.getRule(responseData);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  10. dbflute_fess/_readme.txt

    manage.bat(sh) => 22 (doc):
    A execution command of Document task
    which creates documents, for example, SchemaHTML, HistoryHTML
    to the "output/doc" directory.
    
    manage.bat(sh) => 23 (generate):
    A execution command of Generate task
    which generates classes corresponding your tables,
    for example, entities, condition-beans to specified
    directories by DBFlute properties on "dfprop" directory.
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Jul 04 22:46:31 UTC 2015
    - 2.5K bytes
    - Viewed (0)
Back to top