Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for errorhandler (0.2 sec)

  1. internal/handlers/forwarder.go

    			f.modifyRequest(req, inReq.URL)
    		},
    		BufferPool:    newBufPool(128 << 10),
    		Transport:     f.RoundTripper,
    		FlushInterval: defaultFlushInterval,
    		ErrorHandler:  f.customErrHandler,
    	}
    
    	if f.ErrorHandler != nil {
    		revproxy.ErrorHandler = f.ErrorHandler
    	}
    
    	revproxy.ServeHTTP(w, outReq)
    }
    
    // customErrHandler is originally implemented to avoid having the following error
    //
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 07 05:42:10 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. tests/test_ws_router.py

        """
    
        @websocket_middleware
        async def errorhandler(websocket: WebSocket, call_next):
            try:
                return await call_next()
            except Exception as e:
                await websocket.close(code=status.WS_1006_ABNORMAL_CLOSURE, reason=repr(e))
    
        myapp = make_app(middleware=[Middleware(errorhandler)])
        client = TestClient(myapp)
        with pytest.raises(WebSocketDisconnect) as e:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  3. cmd/handler-utils.go

    	// proxying the request to another node.
    	for k := range w.Header() {
    		w.Header().Del(k)
    	}
    
    	f := handlers.NewForwarder(&handlers.Forwarder{
    		PassHost:     true,
    		RoundTripper: ep.Transport,
    		ErrorHandler: func(w http.ResponseWriter, r *http.Request, err error) {
    			success = false
    			if err != nil && !errors.Is(err, context.Canceled) {
    				replLogIf(GlobalContext, err)
    			}
    		},
    	})
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. api/go1.11.txt

    pkg net/http/httptrace, type ClientTrace struct, WroteHeaderField func(string, []string)
    pkg net/http/httputil, type ReverseProxy struct, ErrorHandler func(http.ResponseWriter, *http.Request, error)
    pkg os, const ModeIrregular = 524288
    pkg os, const ModeIrregular FileMode
    pkg os, const ModeType = 2399666176
    pkg os, func UserCacheDir() (string, error)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 22 03:48:56 UTC 2018
    - 25K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg go/scanner, method (*ErrorList) Add(token.Position, string)
    pkg go/scanner, method (*ErrorList) RemoveMultiples()
    pkg go/scanner, method (*ErrorList) Reset()
    pkg go/scanner, method (*Scanner) Init(*token.File, []uint8, ErrorHandler, Mode)
    pkg go/scanner, method (*Scanner) Scan() (token.Pos, token.Token, string)
    pkg go/scanner, method (Error) Error() string
    pkg go/scanner, method (ErrorList) Err() error
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  6. CHANGELOG/CHANGELOG-1.31.md

    - K8s.io/apimachinery/pkg/util/runtime: Added support for new calls to handle panics and errors in the context where they occur. `PanicHandlers` and `ErrorHandlers` now must accept a context parameter for that. Log output is structured instead of unstructured. ([#121970](https://github.com/kubernetes/kubernetes/pull/121970), [@pohly](https://github.com/pohly)) [SIG API Machinery and Instrumentation]
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Wed Oct 23 12:18:32 UTC 2024
    - 315.4K bytes
    - Viewed (0)
Back to top