Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for Accent (0.14 sec)

  1. tests/test_ws_router.py

    app = FastAPI()
    
    
    @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)
  2. tests/test_tutorial/test_advanced_middleware/test_tutorial003.py

    
    @app.get("/large")
    async def large():
        return PlainTextResponse("x" * 4000, status_code=200)
    
    
    client = TestClient(app)
    
    
    def test_middleware():
        response = client.get("/large", headers={"accept-encoding": "gzip"})
        assert response.status_code == 200, response.text
        assert response.text == "x" * 4000
        assert response.headers["Content-Encoding"] == "gzip"
        assert int(response.headers["Content-Length"]) < 4000
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 665 bytes
    - Viewed (0)
  3. docs/en/docs/reference/websockets.md

                - cookies
                - client
                - state
                - url_for
                - client_state
                - application_state
                - receive
                - send
                - accept
                - receive_text
                - receive_bytes
                - receive_json
                - iter_text
                - iter_bytes
                - iter_json
                - send_text
                - send_bytes
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  4. docs/en/docs/python-types.md

    As Python advances, **newer versions** come with improved support for these type annotations and in many cases you won't even need to import and use the `typing` module to declare the type annotations.
    
    If you can choose a more recent version of Python for your project, you will be able to take advantage of that extra simplicity.
    
    In all the docs there are examples compatible with each version of Python (when there's a difference).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

    * Fix incorrect `Request` class import. PR [#493](https://github.com/tiangolo/fastapi/pull/493) by [@kamalgill](https://github.com/kamalgill).
    
    ## 0.38.0
    
    * Add recent articles to [External Links](https://fastapi.tiangolo.com/external-links/) and recent opinions. PR [#490](https://github.com/tiangolo/fastapi/pull/490).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  6. docs_src/websockets/tutorial003_py39.py

        </body>
    </html>
    """
    
    
    class ConnectionManager:
        def __init__(self):
            self.active_connections: list[WebSocket] = []
    
        async def connect(self, websocket: WebSocket):
            await websocket.accept()
            self.active_connections.append(websocket)
    
        def disconnect(self, websocket: WebSocket):
            self.active_connections.remove(websocket)
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/cors.md

    * `allow_methods` - πŸ“‡ πŸ‡ΊπŸ‡ΈπŸ” πŸ‘©β€πŸ”¬ πŸ‘ˆ πŸ”œ βœ” βœ–οΈ-πŸ‡¨πŸ‡³ πŸ“¨. πŸ”’ `['GET']`. πŸ‘† πŸ’ͺ βš™οΈ `['*']` βœ” 🌐 🐩 πŸ‘©β€πŸ”¬.
    * `allow_headers` - πŸ“‡ πŸ‡ΊπŸ‡ΈπŸ” πŸ“¨ 🎚 πŸ‘ˆ πŸ”œ πŸ•β€πŸ¦Ί βœ–οΈ-πŸ‡¨πŸ‡³ πŸ“¨. πŸ”’ `[]`. πŸ‘† πŸ’ͺ βš™οΈ `['*']` βœ” 🌐 🎚. `Accept`, `Accept-Language`, `Content-Language` &amp; `Content-Type` 🎚 πŸ•§ βœ” <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests" class="external-link" rel="noopener" target="_blank">πŸ™… ⚜ πŸ“¨</a>.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  8. docs/en/docs/js/custom.js

    const div = document.querySelector('.github-topic-projects')
    
    async function getDataBatch(page) {
        const response = await fetch(`https://api.github.com/search/repositories?q=topic:fastapi&per_page=100&page=${page}`, { headers: { Accept: 'application/vnd.github.mercy-preview+json' } })
        const data = await response.json()
        return data
    }
    
    async function getData() {
        let page = 1
        let data = []
        let dataBatch = await getDataBatch(page)
    JavaScript
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 08 17:50:56 GMT 2021
    - 6.6K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/body-nested-models.md

    ---
    
    Another useful case is when you want to have keys of another type (e.g., `int`).
    
    That's what we are going to see here.
    
    In this case, you would accept any `dict` as long as it has `int` keys with `float` values:
    
    === "Python 3.9+"
    
        ```Python hl_lines="7"
        {!> ../../../docs_src/body_nested_models/tutorial009_py39.py!}
        ```
    
    === "Python 3.8+"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  10. docs/en/docs/help-fastapi.md

    The idea is for the **FastAPI** community to be kind and welcoming. At the same time, don't accept bullying or disrespectful behavior towards others. We have to take care of each other.
    
    ---
    
    Here's how to help others with questions (in discussions or issues):
    
    ### Understand the question
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.7K bytes
    - Viewed (0)
Back to top