Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 160 for handlebars (0.07 seconds)

  1. cmd/handler-utils.go

    	success = true
    
    	// Make sure we remove any existing headers before
    	// 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
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 16.4K bytes
    - Click Count (1)
  2. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

            }
        }
    
        /**
         * Loads protocol handlers from the specified base package by scanning for
         * Handler classes in subpackages and registering them as web or file protocols
         * based on their PROTOCOL_TYPE field.
         *
         * @param basePackage the base package to scan for protocol handlers
         */
        protected void loadProtocols(final String basePackage) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 13:59:25 GMT 2026
    - 12.4K bytes
    - Click Count (1)
  3. docs/en/docs/advanced/advanced-dependencies.md

    Before FastAPI 0.106.0, raising exceptions after `yield` was not possible, the exit code in dependencies with `yield` was executed *after* the response was sent, so [Exception Handlers](../tutorial/handling-errors.md#install-custom-exception-handlers) would have already run.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/handling-errors.md

    有些场景下要为 HTTP 错误添加自定义响应头。例如,出于某些类型的安全需要。
    
    一般情况下你可能不会在代码中直接使用它。
    
    但在某些高级场景中需要时,你可以添加自定义响应头:
    
    {* ../../docs_src/handling_errors/tutorial002_py310.py hl[14] *}
    
    ## 安装自定义异常处理器 { #install-custom-exception-handlers }
    
    可以使用[与 Starlette 相同的异常处理工具](https://www.starlette.dev/exceptions/)添加自定义异常处理器。
    
    假设有一个自定义异常 `UnicornException`(你自己或你使用的库可能会 `raise` 它)。
    
    并且你希望用 FastAPI 在全局处理该异常。
    
    此时,可以用 `@app.exception_handler()` 添加自定义异常处理器:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  5. cmd/sftp-server-driver.go

    		globalTrace.Publish(sftpTrace(s, startTime, source, user, err, sz))
    	}
    }
    
    // NewSFTPDriver initializes sftp.Handlers implementation of following interfaces
    //
    // - sftp.Fileread
    // - sftp.Filewrite
    // - sftp.Filelist
    // - sftp.Filecmd
    func NewSFTPDriver(perms *ssh.Permissions, remoteIP string) sftp.Handlers {
    	handler := &sftpDriver{
    		endpoint:    fmt.Sprintf("127.0.0.1:%s", globalMinioPort),
    		permissions: perms,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Feb 10 16:35:49 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  6. docs/es/docs/tutorial/handling-errors.md

    {* ../../docs_src/handling_errors/tutorial002_py310.py hl[14] *}
    
    ## Instalar manejadores de excepciones personalizados { #install-custom-exception-handlers }
    
    Puedes agregar manejadores de excepciones personalizados con [las mismas utilidades de excepciones de Starlette](https://www.starlette.dev/exceptions/).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 9.6K bytes
    - Click Count (0)
  7. docs/pt/docs/tutorial/handling-errors.md

    {* ../../docs_src/handling_errors/tutorial002_py310.py hl[14] *}
    
    ## Instale manipuladores de exceções customizados { #install-custom-exception-handlers }
    
    Você pode adicionar manipuladores de exceção customizados com [a mesma seção de utilidade de exceções presentes no Starlette](https://www.starlette.dev/exceptions/).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  8. apache-maven/src/assembly/maven/bin/mvn

      CLASSWORLDS_CONF=`cygpath --windows "$CLASSWORLDS_CONF"`
      MAVEN_HOME=`cygpath --windows "$MAVEN_HOME"`
      MAVEN_PROJECTBASEDIR=`cygpath --windows "$MAVEN_PROJECTBASEDIR"`
    fi
    
    handle_args() {
      while [ $# -gt 0 ]; do
        case $1 in
          --debug)
            if [ -z "$MAVEN_DEBUG_OPTS" ] ; then
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Dec 10 16:40:06 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  9. cmd/bucket-policy.go

    	"time"
    
    	jsoniter "github.com/json-iterator/go"
    	miniogopolicy "github.com/minio/minio-go/v7/pkg/policy"
    	"github.com/minio/minio-go/v7/pkg/tags"
    	"github.com/minio/minio/internal/auth"
    	"github.com/minio/minio/internal/handlers"
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v3/policy"
    )
    
    // PolicySys - policy subsystem.
    type PolicySys struct{}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/tutorial/handling-errors.md

    有些情況需要在 HTTP 錯誤回應中加入自訂標頭,例如某些安全性情境。
    
    你大概不需要在程式碼中直接使用。
    
    但若你在進階情境中需要,可以這樣加入自訂標頭:
    
    {* ../../docs_src/handling_errors/tutorial002_py310.py hl[14] *}
    
    ## 安裝自訂例外處理器 { #install-custom-exception-handlers }
    
    你可以使用 [Starlette 的相同例外工具](https://www.starlette.dev/exceptions/) 來加入自訂例外處理器。
    
    假設你有一個自訂例外 `UnicornException`,你(或你使用的函式庫)可能會 `raise` 它。
    
    而你想用 FastAPI 全域處理這個例外。
    
    你可以使用 `@app.exception_handler()` 加入自訂例外處理器:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.3K bytes
    - Click Count (0)
Back to Top