Files
gh-christianlouis-docuelevate/app/api
google-labs-jules[bot] 320a2acedd perf: optimize url upload with async i/o
Replaced synchronous `requests.get` and `open().write` in the `process_url` endpoint with `httpx.AsyncClient` and `aiofiles.open`. This prevents the FastAPI event loop from blocking during large file downloads.

Updated test suite in `tests/test_url_upload.py` to use `AsyncMock` to mock `httpx.AsyncClient.stream` contexts and async generators properly, covering all original conditions and HTTP error handling paths.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-16 09:41:17 +00:00
..
2026-03-05 22:22:49 +00:00
2026-02-23 09:33:48 +00:00
2026-02-23 09:33:48 +00:00
2026-03-15 04:10:28 +00:00
2026-02-23 09:33:48 +00:00