Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 677 for acceptCh (0.3 sec)

  1. docs_src/app_testing/tutorial002_py39.py

    app = FastAPI()
    
    
    @app.get("/")
    async def read_main():
        return {"msg": "Hello World"}
    
    
    @app.websocket("/ws")
    async def websocket(websocket: WebSocket):
        await websocket.accept()
        await websocket.send_json({"msg": "Hello WebSocket"})
        await websocket.close()
    
    
    def test_read_main():
        client = TestClient(app)
        response = client.get("/")
        assert response.status_code == 200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 757 bytes
    - Viewed (0)
  2. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiTypeProvider.kt

        }
    
        private
        fun classNodeFor(classBytesSupplier: () -> ByteArray): () -> ApiTypeClassNode = {
            ApiTypeClassNode(asmLevel).also {
                ClassReader(classBytesSupplier()).accept(it, SKIP_CODE or SKIP_FRAMES)
            }
        }
    
        private
        fun <T> open(action: () -> T): T {
            check(!closed) { "ApiTypeProvider closed!" }
            return action()
        }
    
        internal
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Mar 12 15:56:18 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  3. tests/test_route_scope.py

    
    @app.websocket("/items/{item_id}")
    async def websocket_item(item_id: str, websocket: WebSocket):
        route: APIWebSocketRoute = websocket.scope["route"]
        await websocket.accept()
        await websocket.send_json({"item_id": item_id, "path": route.path})
    
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/users/rick")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Sep 29 03:29:38 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                stk.push(new ActivationFrame("arch", Optional.empty()));
                validator.accept(oa.getArch());
                stk.peek().location = "family";
                validator.accept(oa.getFamily());
                stk.peek().location = "name";
                validator.accept(oa.getName());
                stk.peek().location = "version";
                validator.accept(oa.getVersion());
                stk.pop();
                stk.pop();
            });
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 03 15:06:05 UTC 2025
    - 66.8K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/plugin/MavenPluginPrerequisitesChecker.java

        /**
         *
         * @param pluginDescriptor the plugin descriptor to check
         * @throws IllegalStateException in case the checked prerequisites are not met
         */
        @Override
        void accept(PluginDescriptor pluginDescriptor);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 09 16:35:21 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/util/LogStreamTest.java

        }
    
        @Test
        void testNullStreamHandling() {
            // Test that passing null to setInstance throws NullPointerException
            // This is expected behavior as PrintStream doesn't accept null
            assertThrows(NullPointerException.class, () -> {
                LogStream.setInstance(null);
            });
        }
    
        @Test
        void testPrintStreamDelegation() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            Map<String, List<String>> properties = new HashMap<>();
            properties.put("Accept", Collections.singletonList("application/json"));
            when(mockConnection.getRequestProperties()).thenReturn(properties);
            // Need to mock getRequestProperty as well since it delegates to wrapped connection
            when(mockConnection.getRequestProperty("Accept")).thenReturn("application/json");
    
            // Act
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/WinErrorTest.java

                    Arguments.of(WinError.ERROR_REQ_NOT_ACCEP,
                            "No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept."),
                    Arguments.of(WinError.ERROR_BAD_PIPE, "The pipe state is invalid."),
                    Arguments.of(WinError.ERROR_PIPE_BUSY, "All pipe instances are busy."),
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

     * method equivalent to {@link
     * java.util.concurrent.locks.ReentrantLock#hasWaiters(java.util.concurrent.locks.Condition)},
     * except that the method parameter must accept whatever condition-like object is passed into {@code
     * callAndAssertWaits} by the test.
     *
     * @param <L> the type of the lock-like object to be used
     * @author Justin T. Sampson
     */
    @NullUnmarked
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/UpgradedPropertiesChangesTest.kt

                    removed("Method", "Task.setSourceCompatibility(java.lang.String)"),
                )
            }
        }
    
        @Test
        fun `should automatically accept binary incompatibilities for upgraded properties`() {
            checkBinaryCompatible(
                v1 = {
                    withJavaFile(
                        "java/com/example/TaskInterface.java",
                        """
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Dec 24 14:15:15 UTC 2025
    - 26.2K bytes
    - Viewed (0)
Back to top