Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for irised (0.31 sec)

  1. tests/test_custom_middleware_exception.py

                    "name": "ContentSizeLimitExceeded",
                    "code": 999,
                    "message": "File limit exceeded",
                }
            }
    
    
    def test_custom_middleware_exception_not_raised(tmp_path: Path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        with client:
            with open(path, "rb") as file:
                response = client.post("/middleware", files={"file": file})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Aug 25 21:44:40 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  2. fastapi/routing.py

                        body=e.doc,
                    )
                    raise validation_error from e
                except HTTPException:
                    # If a middleware raises an HTTPException, it should be raised again
                    raise
                except Exception as e:
                    http_error = HTTPException(
                        status_code=400, detail="There was an error parsing the body"
                    )
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top