Files
romm/backend
Georges-Antoine Assi 8a19c1072c refactor: dedupe broker request boilerplate in streaming endpoint
Extract the repeated urllib request construction (URL, secret, payload,
headers, urlopen, parsing) shared by the six broker functions into
_broker_request and its best-effort _broker_request_safe variant. The
best-effort wrappers collapse to a few lines each and the nosec B310
annotation now lives in one place.

Slim the tests with a _streaming() context manager plus _auth/_claim_ok
helpers, removing the repeated cm.get_config patch boilerplate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-18 15:32:19 -04:00
..
2026-07-16 20:39:54 -04:00
2026-06-21 17:42:25 -04:00
2026-02-09 17:26:21 -05:00
2026-07-16 20:39:54 -04:00
2026-07-01 08:58:00 -04:00
2026-07-06 22:17:56 -04:00
2024-02-10 12:43:39 -05:00
2025-07-05 19:17:40 -04:00
2026-05-17 17:39:47 -04:00
2026-06-25 16:09:15 -04:00
2026-05-22 22:35:30 -04:00