Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for app_default_post (0.06 seconds)

  1. tests/test_strict_content_type_app_level.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    app_default = FastAPI()
    
    
    @app_default.post("/items/")
    async def app_default_post(data: dict):
        return data
    
    
    app_lax = FastAPI(strict_content_type=False)
    
    
    @app_lax.post("/items/")
    async def app_lax_post(data: dict):
        return data
    
    
    client_default = TestClient(app_default)
    client_lax = TestClient(app_lax)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Feb 23 17:45:20 GMT 2026
    - 1.1K bytes
    - Click Count (0)
Back to Top