Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 161 for Mello (0.15 sec)

  1. tests/test_default_response_class_router.py

    
    @router_a_a.get("/override", response_class=PlainTextResponse)
    def get_a_a_path_override():
        return "Hello A A"
    
    
    @router_a_b_override.get("/")
    def get_a_b():
        return "Hello A B"
    
    
    @router_a_b_override.get("/override", response_class=HTMLResponse)
    def get_a_b_path_override():
        return "Hello A B"
    
    
    @router_b_override.get("/")
    def get_b():
        return "Hello B"
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Mar 01 20:49:20 GMT 2020
    - 5K bytes
    - Viewed (0)
  2. tests/test_ws_router.py

    @app.websocket_route("/")
    async def index(websocket: WebSocket):
        await websocket.accept()
        await websocket.send_text("Hello, world!")
        await websocket.close()
    
    
    @router.websocket_route("/router")
    async def routerindex(websocket: WebSocket):
        await websocket.accept()
        await websocket.send_text("Hello, router!")
        await websocket.close()
    
    
    @prefix_router.websocket_route("/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_websockets/test_tutorial003.py

            "/ws/5678"
        ) as connection_two:
            connection.send_text("Hello from 1234")
            data1 = connection.receive_text()
            assert data1 == "You wrote: Hello from 1234"
            data2 = connection_two.receive_text()
            client1_says = "Client #1234 says: Hello from 1234"
            assert data2 == client1_says
            data1 = connection.receive_text()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 29 09:26:07 GMT 2021
    - 872 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_testing_dependencies/test_tutorial001_an_py39.py

        from docs_src.dependency_testing.tutorial001_an_py39 import client
    
        response = client.get("/users/")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "message": "Hello Users!",
            "params": {"q": None, "skip": 5, "limit": 10},
        }
    
    
    @needs_py39
    def test_override_in_users_with_q():
        from docs_src.dependency_testing.tutorial001_an_py39 import client
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_websockets/test_tutorial003_py39.py

            "/ws/5678"
        ) as connection_two:
            connection.send_text("Hello from 1234")
            data1 = connection.receive_text()
            assert data1 == "You wrote: Hello from 1234"
            data2 = connection_two.receive_text()
            client1_says = "Client #1234 says: Hello from 1234"
            assert data2 == client1_says
            data1 = connection.receive_text()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  6. tests/test_tuples.py

                    "post": {
                        "summary": "Hello",
                        "operationId": "hello_tuple_form__post",
                        "requestBody": {
                            "content": {
                                "application/x-www-form-urlencoded": {
                                    "schema": {
                                        "$ref": "#/components/schemas/Body_hello_tuple_form__post"
                                    }
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/settings.md

        // Then you could use it with other programs, like
        $ echo "Hello $MY_NAME"
    
        Hello Wade Wilson
        ```
    
        </div>
    
    === "🚪 📋"
    
        <div class="termy">
    
        ```console
        // Create an env var MY_NAME
        $ $Env:MY_NAME = "Wade Wilson"
    
        // Use it with other programs, like
        $ echo "Hello $Env:MY_NAME"
    
        Hello Wade Wilson
        ```
    
        </div>
    
    ### ✍ 🇨🇻 {🐍
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  8. docs/em/docs/advanced/wsgi.md

    ```txt
    Hello, World from Flask!
    ```
    
    &amp; 🚥 👆 🚶 <a href="http://localhost:8000/v2" class="external-link" target="_blank">http://localhost:8000/v2</a> 👆 🔜 👀 📨 ⚪️➡️ FastAPI:
    
    ```JSON
    {
        "message": "Hello World"
    }
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  9. docs_src/custom_response/tutorial005.py

    from fastapi import FastAPI
    from fastapi.responses import PlainTextResponse
    
    app = FastAPI()
    
    
    @app.get("/", response_class=PlainTextResponse)
    async def main():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 186 bytes
    - Viewed (0)
  10. docs_src/behind_a_proxy/tutorial001.py

    from fastapi import FastAPI, Request
    
    app = FastAPI()
    
    
    @app.get("/app")
    def read_main(request: Request):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jun 11 21:53:19 GMT 2020
    - 189 bytes
    - Viewed (0)
Back to top