Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for sse_items (0.05 seconds)

  1. docs_src/server_sent_events/tutorial001_py310.py

        Item(name="Meeseeks Box", description="A box that summons a Meeseeks."),
    ]
    
    
    @app.get("/items/stream", response_class=EventSourceResponse)
    async def sse_items() -> AsyncIterable[Item]:
        for item in items:
            yield item
    
    
    @app.get("/items/stream-no-async", response_class=EventSourceResponse)
    def sse_items_no_async() -> Iterable[Item]:
        for item in items:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  2. tests/test_sse.py

        Item(name="Meeseeks Box", description="A box that summons a Meeseeks."),
    ]
    
    
    app = FastAPI()
    
    
    @app.get("/items/stream", response_class=EventSourceResponse)
    async def sse_items() -> AsyncIterable[Item]:
        for item in items:
            yield item
    
    
    @app.get("/items/stream-sync", response_class=EventSourceResponse)
    def sse_items_sync() -> Iterable[Item]:
        yield from items
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  3. tests/test_dependency_duplicates.py

    async def no_duplicates(item: Item, item2: Item = Depends(dependency)):
        return [item, item2]
    
    
    @app.post("/with-duplicates-sub")
    async def no_duplicates_sub(
        item: Item, sub_items: list[Item] = Depends(sub_duplicate_dependency)
    ):
        return [item, sub_items]
    
    
    def test_no_duplicates_invalid():
        response = client.post("/no-duplicates", json={"item": {"data": "myitem"}})
        assert response.status_code == 422, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  4. src/main/webapp/WEB-INF/view/admin/user/admin_user.jsp

                                                </thead>
                                                <tbody>
                                                <c:forEach var="data" varStatus="s" items="${userItems}">
                                                    <tr
                                                            data-href="${contextPath}/admin/user/details/4/${f:u(data.id)}" role="button" tabindex="0">
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 4.6K bytes
    - Click Count (0)
Back to Top