Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 64 for 1212 (0.15 sec)

  1. docs/ru/docs/tutorial/extra-data-types.md

    Вот пример *операции пути* с параметрами, который демонстрирует некоторые из вышеперечисленных типов.
    
    === "Python 3.8 и выше"
    
        ```Python hl_lines="1  3  12-16"
        {!> ../../../docs_src/extra_data_types/tutorial001.py!}
        ```
    
    === "Python 3.10 и выше"
    
        ```Python hl_lines="1  2  11-15"
        {!> ../../../docs_src/extra_data_types/tutorial001_py310.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/middleware.md

    ### 在 `response` 的前和后
    
    在任何*路径操作*收到`request`前,可以添加要和请求一起运行的代码.
    
    也可以在*响应*生成但是返回之前添加代码.
    
    例如你可以添加自定义请求头 `X-Process-Time` 包含以秒为单位的接收请求和生成响应的时间:
    
    ```Python hl_lines="10  12-13"
    {!../../../docs_src/middleware/tutorial001.py!}
    ```
    
    ## 其他中间件
    
    你可以稍后在 [Advanced User Guide: Advanced Middleware](../advanced/middleware.md){.internal-link target=_blank}阅读更多关于中间件的教程.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 27 17:25:21 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v2_test.go

    				7:  {vDelMarker, vObj}, // disk 7
    				8:  {vDelMarker, vObj}, // disk 8
    				9:  {vDelMarker, vObj}, // disk 9
    				10: {vObj},             // disk 10
    				11: {vDelMarker, vObj}, // disk 11
    				12: {vDelMarker, vObj}, // disk 12
    				13: {vDelMarker, vObj}, // disk 13
    				14: {vDelMarker, vObj}, // disk 14
    				15: {vDelMarker, vObj}, // disk 15
    			},
    			quorum:      7,
    			reqVersions: 0,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/middleware.md

    ### `response` の前後
    
    *path operation* が `request` を受け取る前に、 `request` とともに実行されるコードを追加できます。
    
    また `response` が生成された後、それを返す前にも追加できます。
    
    例えば、リクエストの処理とレスポンスの生成にかかった秒数を含むカスタムヘッダー `X-Process-Time` を追加できます:
    
    ```Python hl_lines="10  12-13"
    {!../../../docs_src/middleware/tutorial001.py!}
    ```
    
    ## その他のミドルウェア
    
    他のミドルウェアの詳細については、[高度なユーザーガイド: 高度なミドルウェア](../advanced/middleware.md){.internal-link target=_blank}を参照してください。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/handling-errors.md

    Аналогичным образом можно переопределить обработчик `HTTPException`.
    
    Например, для этих ошибок можно вернуть обычный текстовый ответ вместо JSON:
    
    ```Python hl_lines="3-4  9-11  22"
    {!../../../docs_src/handling_errors/tutorial004.py!}
    ```
    
    !!! note "Технические детали"
        Можно также использовать `from starlette.responses import PlainTextResponse`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  6. docs/zh/docs/advanced/custom-response.md

    {!../../../docs_src/custom_response/tutorial007.py!}
    ```
    
    #### 对类似文件的对象使用 `StreamingResponse`
    
    如果您有类似文件的对象(例如,由 `open()` 返回的对象),则可以在 `StreamingResponse` 中将其返回。
    
    包括许多与云存储,视频处理等交互的库。
    
    ```Python hl_lines="2  10-12  14"
    {!../../../docs_src/custom_response/tutorial008.py!}
    ```
    
    !!! tip "小贴士"
        注意在这里,因为我们使用的是不支持 `async` 和 `await` 的标准 `open()`,我们使用普通的 `def` 声明了路径操作。
    
    ### `FileResponse`
    
    异步传输文件作为响应。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 7.8K bytes
    - Viewed (1)
  7. docs/en/docs/tutorial/handling-errors.md

    The same way, you can override the `HTTPException` handler.
    
    For example, you could want to return a plain text response instead of JSON for these errors:
    
    ```Python hl_lines="3-4  9-11  22"
    {!../../../docs_src/handling_errors/tutorial004.py!}
    ```
    
    !!! note "Technical Details"
        You could also use `from starlette.responses import PlainTextResponse`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/handling-errors.md

    修复错误时,客户端或用户不能访问错误的内部信息,否则会造成安全隐患。
    
    ### 覆盖 `HTTPException` 错误处理器
    
    同理,也可以覆盖 `HTTPException` 处理器。
    
    例如,只为错误返回纯文本响应,而不是返回 JSON 格式的内容:
    
    ```Python hl_lines="3-4  9-11  22"
    {!../../../docs_src/handling_errors/tutorial004.py!}
    
    ```
    
    !!! note "技术细节"
    
        还可以使用 `from starlette.responses import PlainTextResponse`。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  9. maven-core/src/test/resources/apiv4-repo/org/apache/maven/wagon/wagon-webdav/1.0-beta-2/wagon-webdav-1.0-beta-2.jar

    ******@****.*** slide slide-webdavlib 2.1 commons-logging commons-logging 1.0.4 runtime it.could webdav 0.4 test org.mortbay.jetty jetty 4.2.12 test META-INF/maven/org.apache.maven.wagon/wagon-webdav/pom.properties #Generated by Maven #Tue Dec 12 17:29:47 EST 2006 version=1.0-beta-2 groupId=org.apache.maven.wagon artifactId=wagon-webdav...
    Archive
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 16.9K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/handling-errors.md

    Do mesmo modo, você pode sobreescrever o `HTTPException`.
    
    Por exemplo, você pode querer retornar uma *response* em *plain text* ao invés de um JSON para os seguintes erros:
    
    ```Python hl_lines="3-4  9-11  22"
    {!../../../docs_src/handling_errors/tutorial004.py!}
    ```
    
    !!! note "Detalhes Técnicos"
        Você pode usar `from starlette.responses import PlainTextResponse`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10K bytes
    - Viewed (0)
Back to top