Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,161 for handler (0.04 sec)

  1. src/test/java/org/codelibs/fess/filter/CorsFilterTest.java

            private String lastOrigin = null;
            private CorsHandler handler = null;
    
            @Override
            public CorsHandler get(String origin) {
                getCalled = true;
                lastOrigin = origin;
                return handler;
            }
    
            public void setHandler(CorsHandler handler) {
                this.handler = handler;
            }
    
            public boolean wasGetCalled() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/dependencies/dependencies-with-yield.md

        opt raise
            dep -->> handler: Raise HTTPException
            handler -->> client: HTTP error response
            dep -->> dep: Raise other exception
        end
        dep ->> operation: Run dependency, e.g. DB session
        opt raise
            operation -->> dep: Raise HTTPException
            dep -->> handler: Auto forward exception
            handler -->> client: HTTP error response
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. cmd/bucket-policy-handlers_test.go

    			t.Fatalf("Test %d: Failed to create HTTP request for GetBucketPolicyHandler: <ERROR> %v", i+1, err)
    		}
    		// Since `apiRouter` satisfies `http.Handler` it has a ServeHTTP to execute the logic of the handler.
    		// Call the ServeHTTP to execute the handler, GetBucketPolicyHandler handles the request.
    		apiRouter.ServeHTTP(recV4, reqV4)
    		// Assert the response code with the expected status.
    		if recV4.Code != testCase.expectedRespStatus {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/WinErrorTest.java

            }
        }
    
        // Simple collaborator to demonstrate interaction verification with Mockito
        interface Handler {
            void handle(int code, String message);
        }
    
        @Mock
        Handler handler;
    
        @Test
        @DisplayName("Interaction: handler called with each code/message pair")
        void interaction_with_mock_handler_is_as_expected() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/events.md

    In this case, the `startup` event handler function will initialize the items "database" (just a `dict`) with some values.
    
    You can add more than one event handler function.
    
    And your application won't start receiving requests until all the `startup` event handlers have completed.
    
    ### `shutdown` event { #shutdown-event }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/handling-errors.md

    ///
    
    ## Override the default exception handlers { #override-the-default-exception-handlers }
    
    **FastAPI** has some default exception handlers.
    
    These handlers are in charge of returning the default JSON responses when you `raise` an `HTTPException` and when the request has invalid data.
    
    You can override these exception handlers with your own.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  7. api/next/65954.txt

    pkg log/slog, func NewMultiHandler(...Handler) *MultiHandler #65954
    pkg log/slog, method (*MultiHandler) Enabled(context.Context, Level) bool #65954
    pkg log/slog, method (*MultiHandler) Handle(context.Context, Record) error #65954
    pkg log/slog, method (*MultiHandler) WithAttrs([]Attr) Handler #65954
    pkg log/slog, method (*MultiHandler) WithGroup(string) Handler #65954
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Sep 04 18:07:44 UTC 2025
    - 417 bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

        static void setupURLHandler() {
            // Register the SMB URL handler to avoid MalformedURLException
            String pkgs = System.getProperty("java.protocol.handler.pkgs");
            if (pkgs == null) {
                System.setProperty("java.protocol.handler.pkgs", "jcifs");
            } else if (!pkgs.contains("jcifs")) {
                System.setProperty("java.protocol.handler.pkgs", pkgs + "|jcifs");
            }
        }
    
        @BeforeEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  9. cmd/metrics-router.go

    		auth = NoAuthMiddleware
    	}
    
    	metricsRouter.Handle(prometheusMetricsPathLegacy, auth(metricsHandler()))
    	metricsRouter.Handle(prometheusMetricsV2ClusterPath, auth(metricsServerHandler()))
    	metricsRouter.Handle(prometheusMetricsV2BucketPath, auth(metricsBucketHandler()))
    	metricsRouter.Handle(prometheusMetricsV2NodePath, auth(metricsNodeHandler()))
    	metricsRouter.Handle(prometheusMetricsV2ResourcePath, auth(metricsResourceHandler()))
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/context/CIFSContextWrapperTest.java

            // First call should create a new Handler
            URLStreamHandler handler1 = cifsContextWrapper.getUrlHandler();
            assertNotNull(handler1);
            assertTrue(handler1 instanceof Handler);
    
            // Second call should return the same instance
            URLStreamHandler handler2 = cifsContextWrapper.getUrlHandler();
            assertEquals(handler1, handler2);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top