Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 300 for sessions (0.04 seconds)

  1. tests/test_dependency_yield_scope_websockets.py

            {"named_session_open": sessions[0].open, "session_open": sessions[1].open}
        )
    
    
    @app.websocket("/regular-function-scope")
    async def get_regular_function_scope(
        websocket: WebSocket, sessions: RegularSessionsDep
    ) -> Any:
        await websocket.accept()
        await websocket.send_json(
            {"named_session_open": sessions[0].open, "session_open": sessions[1].open}
        )
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6K bytes
    - Click Count (0)
  2. tests/test_dependency_yield_scope.py

    SessionDefaultDep = Annotated[Session, Depends(dep_session)]
    
    
    class NamedSession:
        def __init__(self, name: str = "default") -> None:
            self.name = name
            self.open = True
    
    
    def get_named_session(session: SessionRequestDep, session_b: SessionDefaultDep) -> Any:
        assert session is session_b
        named_session = NamedSession(name="named")
        yield named_session, session_b
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/chat/ChatSessionManager.java

         * @return the session, or null if not found or expired
         */
        public ChatSession getSession(final String sessionId) {
            final ChatSession session = findSession(sessionId);
            if (session == null) {
                return null;
            }
            session.touch();
            if (logger.isDebugEnabled()) {
                logger.debug("Session retrieved. sessionId={}, messageCount={}", sessionId, session.getMessages().size());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 13:27:59 GMT 2026
    - 13.7K bytes
    - Click Count (0)
  4. tensorflow/c/c_api_internal.h

      // The keys of this map are all the active sessions using this graph. Each
      // value records whether the graph has been mutated since the corresponding
      // session has been run (this is detected in RecordMutation function). If the
      // string is empty, no mutation has occurred. Otherwise the string is a
      // description of the mutation suitable for returning to the user.
      //
      // Sessions are added to this map in TF_NewSession, and removed in
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Jan 07 04:56:09 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/advanced/testing-websockets.md

    為此,你可以在 `with` 陳述式中使用 `TestClient`,連線到該 WebSocket:
    
    {* ../../docs_src/app_testing/tutorial002_py310.py hl[27:31] *}
    
    /// note | 注意
    
    想了解更多,請參考 Starlette 的[測試 WebSocket](https://www.starlette.dev/testclient/#testing-websocket-sessions)文件。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 420 bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/it/admin/CrawlerLogTests.java

            assertEquals(0, JsonPath.from(response).getInt("response.status"));
    
            // Test with session ID filter
            if (!logList.isEmpty()) {
                final String sessionId = (String) logList.get(0).get("session_id");
                final Map<String, Object> filterBody = new HashMap<>();
                filterBody.put("session_id", sessionId);
                response = checkMethodBase(filterBody).get("/api/admin/crawlinginfo/logs").asString();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Mar 30 14:01:34 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  7. docs/en/docs/advanced/testing-websockets.md

    {* ../../docs_src/app_testing/tutorial002_py310.py hl[27:31] *}
    
    /// note
    
    For more details, check Starlette's documentation for [testing WebSockets](https://www.starlette.dev/testclient/#testing-websocket-sessions).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 411 bytes
    - Click Count (0)
  8. docs/ko/docs/advanced/testing-websockets.md

    이를 위해 `with` 문에서 `TestClient`를 사용하여 WebSocket에 연결합니다:
    
    {* ../../docs_src/app_testing/tutorial002_py310.py hl[27:31] *}
    
    /// note
    
    자세한 내용은 Starlette의 [WebSocket 테스트](https://www.starlette.dev/testclient/#testing-websocket-sessions) 문서를 확인하세요.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 453 bytes
    - Click Count (0)
  9. docs/zh/docs/advanced/testing-websockets.md

    为此,在 `with` 语句中使用 `TestClient` 连接到 WebSocket:
    
    {* ../../docs_src/app_testing/tutorial002_py310.py hl[27:31] *}
    
    /// note | 注意
    
    更多细节请查看 Starlette 的文档:[测试 WebSockets](https://www.starlette.dev/testclient/#testing-websocket-sessions)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 403 bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/chat/ChatAction.java

        }
    
        /**
         * Clears the chat session.
         *
         * @param form the chat form containing the session ID to clear
         * @return the HTML response redirecting to the chat page
         */
        @Execute
        public HtmlResponse clear(final ChatForm form) {
            if (form.sessionId != null) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Clearing chat session. sessionId={}", form.sessionId);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Tue Mar 10 14:54:51 GMT 2026
    - 4.4K bytes
    - Click Count (0)
Back to Top