Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 313 for 14 (0.04 seconds)

  1. docs/zh/docs/tutorial/handling-errors.md

    **FastAPI** 能自动处理这些数据,并将之转换为 JSON。
    
    ///
    
    ## 添加自定义响应头
    
    有些场景下要为 HTTP 错误添加自定义响应头。例如,出于某些方面的安全需要。
    
    一般情况下可能不会需要在代码中直接使用响应头。
    
    但对于某些高级应用场景,还是需要添加自定义响应头:
    
    {* ../../docs_src/handling_errors/tutorial002.py hl[14] *}
    
    ## 安装自定义异常处理器
    
    添加自定义处理器,要使用 [Starlette 的异常工具](https://www.starlette.dev/exceptions/)。
    
    假设要触发的自定义异常叫作 `UnicornException`。
    
    且需要 FastAPI 实现全局处理该异常。
    
    此时,可以用 `@app.exception_handler()` 添加自定义异常控制器:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  2. docs/fr/docs/tutorial/background-tasks.md

    Dans votre *fonction de chemin*, passez votre fonction de tâche à l'objet de type `BackgroundTasks` (`background_tasks` ici) grâce à la méthode `.add_task()` :
    
    
    {* ../../docs_src/background_tasks/tutorial001.py hl[14] *}
    
    `.add_task()` reçoit comme arguments :
    
    * Une fonction de tâche à exécuter en arrière-plan (`write_notification`).
    * Les arguments positionnels à passer à la fonction de tâche dans l'ordre (`email`).
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  3. .teamcity/src/main/kotlin/util/AdHocPerformanceScenario.kt

                )
                when (os) {
                    Os.WINDOWS -> {
                        profilerParam("jprofiler")
                        param("env.JPROFILER_HOME", "C:\\Program Files\\jprofiler\\jprofiler11.1.4")
                    }
    
                    else -> {
                        profilerParam("async-profiler")
                        param("env.FG_HOME_DIR", "/opt/FlameGraph")
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Dec 22 07:15:16 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  4. src/archive/zip/struct.go

    	directory64LocLen        = 20         //
    	directory64EndLen        = 56         // + extra
    
    	// Constants for the first byte in CreatorVersion.
    	creatorFAT    = 0
    	creatorUnix   = 3
    	creatorNTFS   = 11
    	creatorVFAT   = 14
    	creatorMacOSX = 19
    
    	// Version numbers.
    	zipVersion20 = 20 // 2.0
    	zipVersion45 = 45 // 4.5 (reads and writes zip64 archives)
    
    	// Limits for non zip64 files.
    	uint16max = (1 << 16) - 1
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue May 28 21:41:09 GMT 2024
    - 12.1K bytes
    - Click Count (0)
  5. api/go1.1.txt

    pkg syscall (linux-386), const F_SETLEASE = 1024
    pkg syscall (linux-386), const F_SETLK = 13
    pkg syscall (linux-386), const F_SETLK64 = 13
    pkg syscall (linux-386), const F_SETLKW = 14
    pkg syscall (linux-386), const F_SETLKW64 = 14
    pkg syscall (linux-386), const F_SETOWN = 8
    pkg syscall (linux-386), const F_SETOWN_EX = 15
    pkg syscall (linux-386), const F_SETPIPE_SZ = 1031
    pkg syscall (linux-386), const F_SETSIG = 10
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Click Count (0)
  6. docs/iam/access-management-plugin.md

    In another terminal start MinIO:
    
    ```sh
    export MINIO_CI_CD=1
    export MINIO_ROOT_USER=minio
    export MINIO_ROOT_PASSWORD=minio123
    export MINIO_POLICY_PLUGIN_URL=http://localhost:8080/
    minio server /tmp/disk{1...4}
    ```
    
    Now, let's test it out with `mc`:
    
    ```sh
    mc alias set myminio http://localhost:9000 minio minio123
    mc ls myminio
    mc mb myminio/test
    mc cp /etc/issue myminio/test
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Dec 13 22:28:48 GMT 2022
    - 4.4K bytes
    - Click Count (1)
  7. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

            // 10
            "id\r\n".encodeUtf8(),
            // 11
            "id\r".encodeUtf8(),
            // 12
            "id\n".encodeUtf8(),
            // 13
            "event: ".encodeUtf8(),
            // 14
            "event:".encodeUtf8(),
            // 15
            "event\r\n".encodeUtf8(),
            // 16
            "event\r".encodeUtf8(),
            // 17
            "event\n".encodeUtf8(),
            // 18
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 03 07:51:20 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  8. docs/en/docs/tutorial/handling-errors.md

    You probably won't need to use it directly in your code.
    
    But in case you needed it for an advanced scenario, you can add custom headers:
    
    {* ../../docs_src/handling_errors/tutorial002_py39.py hl[14] *}
    
    ## Install custom exception handlers { #install-custom-exception-handlers }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 9K bytes
    - Click Count (0)
  9. docs/en/data/translators.yml

      url: https://github.com/hard-coders
    Joao-Pedro-P-Holanda:
      login: Joao-Pedro-P-Holanda
      count: 14
      avatarUrl: https://avatars.githubusercontent.com/u/110267046?u=331bd016326dac4cf3df4848f6db2dbbf8b5f978&v=4
      url: https://github.com/Joao-Pedro-P-Holanda
    codingjenny:
      login: codingjenny
      count: 14
      avatarUrl: https://avatars.githubusercontent.com/u/103817302?u=3a042740dc0ff58615da0d8679230966fd7693e8&v=4
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Dec 01 06:27:43 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt

      var client = clientTestRule.newClient()
    
      @StartStop
      private val server = MockWebServer()
    
      @BeforeEach
      fun setUp() {
        // Default after JDK 14, but we are avoiding tests that assume special setup.
        // System.setProperty("jdk.tls.client.enableSessionTicketExtension", "true")
        // System.setProperty("jdk.tls.server.enableSessionTicketExtension", "true")
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 5.9K bytes
    - Click Count (1)
Back to Top