Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1071 - 1080 of 1,722 for ujson (0.07 seconds)

  1. tests/test_tutorial/test_response_cookies/test_tutorial001.py

    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.post("/cookie/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Come to the dark side, we have cookies"}
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 408 bytes
    - Click Count (0)
  2. docs/ru/docs/how-to/custom-request-and-route.md

    Если вы только начинаете работать с **FastAPI**, возможно, стоит пропустить этот раздел.
    
    ///
    
    ## Сценарии использования { #use-cases }
    
    Некоторые сценарии:
    
    * Преобразование тел запросов, не в формате JSON, в JSON (например, <a href="https://msgpack.org/index.html" class="external-link" target="_blank">`msgpack`</a>).
    * Распаковка тел запросов, сжатых с помощью gzip.
    * Автоматическое логирование всех тел запросов.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 11 21:25:03 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_response_cookies/test_tutorial002.py

    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.post("/cookie-and-object/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Come to the dark side, we have cookies"}
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 419 bytes
    - Click Count (0)
  4. tests/test_tutorial/test_wsgi/test_tutorial001.py

        assert response.text == "Hello, World from Flask!"
    
    
    def test_app():
        response = client.get("/v2")
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 441 bytes
    - Click Count (1)
  5. docs/de/docs/tutorial/body-fields.md

    ///
    
    ## Zusätzliche Information hinzufügen { #add-extra-information }
    
    Sie können zusätzliche Information in `Field`, `Query`, `Body`, usw. deklarieren. Und es wird im generierten JSON-Schema untergebracht.
    
    Sie werden später mehr darüber lernen, wie man zusätzliche Information unterbringt, wenn Sie lernen, Beispiele zu deklarieren.
    
    /// warning | Achtung
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 15:10:09 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  6. internal/config/identity/openid/jwks_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package openid
    
    import (
    	"bytes"
    	"crypto"
    	"crypto/ecdsa"
    	"crypto/elliptic"
    	"crypto/rsa"
    	"encoding/json"
    	"testing"
    )
    
    func TestAzurePublicKey(t *testing.T) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 9.8K bytes
    - Click Count (0)
  7. docs_src/custom_response/tutorial009c_py39.py

    from typing import Any
    
    import orjson
    from fastapi import FastAPI, Response
    
    app = FastAPI()
    
    
    class CustomORJSONResponse(Response):
        media_type = "application/json"
    
        def render(self, content: Any) -> bytes:
            assert orjson is not None, "orjson must be installed"
            return orjson.dumps(content, option=orjson.OPT_INDENT_2)
    
    
    @app.get("/", response_class=CustomORJSONResponse)
    async def main():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 451 bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/security/oauth2-jwt.md

    # OAuth2 实现密码哈希与 Bearer  JWT 令牌验证
    
    至此,我们已经编写了所有安全流,本章学习如何使用 <abbr title="JSON Web Tokens">JWT</abbr> 令牌(Token)和安全密码哈希(Hash)实现真正的安全机制。
    
    本章的示例代码真正实现了在应用的数据库中保存哈希密码等功能。
    
    接下来,我们紧接上一章,继续完善安全机制。
    
    ## JWT 简介
    
    JWT 即**JSON 网络令牌**(JSON Web Tokens)。
    
    JWT 是一种将 JSON 对象编码为没有空格,且难以理解的长字符串的标准。JWT 的内容如下所示:
    
    ```
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 8.9K bytes
    - Click Count (0)
  9. tests/test_router_prefix_with_template.py

    app.include_router(router, prefix="/{segment}")
    
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/seg/users/foo")
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Apr 08 04:37:38 GMT 2020
    - 484 bytes
    - Click Count (0)
  10. tests/test_include_route.py

    
    app.include_router(router)
    
    client = TestClient(app)
    
    
    def test_sub_router():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Apr 08 04:37:38 GMT 2020
    - 496 bytes
    - Click Count (0)
Back to Top