- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for is_open (0.04 sec)
-
tests/test_dependency_yield_scope_websockets.py
await websocket.accept() await websocket.send_json({"is_open": session.open}) @app.websocket("/request-scope") async def request_scope(websocket: WebSocket, session: SessionRequestDep) -> Any: await websocket.accept() await websocket.send_json({"is_open": session.open}) @app.websocket("/two-scopes") async def get_stream_session( websocket: WebSocket,
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 6K bytes - Viewed (0) -
tests/test_dependency_yield_scope.py
@app.get("/function-scope") def function_scope(session: SessionFuncDep) -> Any: def iter_data(): yield json.dumps({"is_open": session.open}) return StreamingResponse(iter_data()) @app.get("/request-scope") def request_scope(session: SessionRequestDep) -> Any: def iter_data(): yield json.dumps({"is_open": session.open}) return StreamingResponse(iter_data()) @app.get("/two-scopes")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 6.7K bytes - Viewed (0) -
src/test/java/jcifs/SmbPipeHandleTest.java
/** * Verifies that the isOpen method returns true for an open handle. */ @Test public void testIsOpen_ReturnsTrueWhenOpen() { when(smbPipeHandle.isOpen()).thenReturn(true); assertTrue(smbPipeHandle.isOpen(), "isOpen() should return true when the handle is open."); } /** * Verifies that the isOpen method returns false for a closed handle.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeOutputStream.java
super(handle.getPipe(), th, null, 0, 0, 0); this.handle = handle; } /** * {@inheritDoc} * * @see jcifs.smb.SmbFileOutputStream#isOpen() */ @Override public boolean isOpen() { return this.handle.isOpen(); } @Override protected synchronized SmbTreeHandleImpl ensureTreeConnected() throws CIFSException { return this.handle.ensureTreeConnected(); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
@DisplayName("isOpen delegates to handle.isOpen") void isOpen_delegates(boolean state) throws Exception { // Arrange SmbPipeOutputStream out = newStream(); when(handle.isOpen()).thenReturn(state); // Act boolean result = out.isOpen(); // Assert assertEquals(state, result, "isOpen should reflect handle state");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/jcifs/SmbPipeHandle.java
*/ @Override void close() throws CIFSException; /** * Tests whether this file descriptor is open and valid. * * @return whether the FD is open and valid */ boolean isOpen(); /** * Tests whether this file descriptor was previously open but has become invalid. * * @return whether the FD was previously open but became invalid */ boolean isStale();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Oct 30 13:46:58 UTC 2025 - 7.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java
} @Override protected void doSendFragment(final byte[] buf, final int off, final int length, final boolean isDirect) throws IOException { if (out != null && !out.isOpen()) { throw new IOException("DCERPC pipe is no longer open"); } if (in == null) { in = (SmbFileInputStream) pipe.getNamedPipeInputStream(); } if (out == null) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaConnection.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.8K bytes - Viewed (0)