Skip to content

✨ feat(mq-lang): add http_all builtin for batched concurrent requests - #2141

Merged
harehare merged 1 commit into
harehare:mainfrom
DavidPandleton:feat/http-all-builtin
Aug 3, 2026
Merged

✨ feat(mq-lang): add http_all builtin for batched concurrent requests#2141
harehare merged 1 commit into
harehare:mainfrom
DavidPandleton:feat/http-all-builtin

Conversation

@DavidPandleton

Copy link
Copy Markdown
Contributor

Adds http_all([...requests]) which issues a batch of HTTP requests and returns the response bodies in order. Each request is a dict with a required url and optional method (defaults to get), body, and headers keys.

The Io trait gains http_request_all with a sequential default implementation; NativeIo overrides it with a thread-scoped concurrent fan-out, and SandboxedIo gates the batch with the same net permission checks as http().

Closes #1998.

Adds `http_all([...requests])` which issues a batch of HTTP requests and
returns the response bodies in order. Each request is a dict with a
required `url` and optional `method`, `body`, and `headers` keys.

The `Io` trait gains `http_request_all` with a sequential default;
`NativeIo` overrides it with a thread-scoped concurrent fan-out, and
`SandboxedIo` gates the batch with the same net permission checks as
`http()`.

Closes #1998
@DavidPandleton
DavidPandleton force-pushed the feat/http-all-builtin branch from a4264ec to 18117e4 Compare August 3, 2026 12:34
@codspeed-hq

codspeed-hq Bot commented Aug 3, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing DavidPandleton:feat/http-all-builtin (18117e4) with main (51912f7)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (89c86d0) during the generation of this report, so 51912f7 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@harehare

harehare commented Aug 3, 2026

Copy link
Copy Markdown
Owner

LGTM, thanks for the great PR! Merging now.

@harehare
harehare merged commit 3ecb730 into harehare:main Aug 3, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add http_all([...requests]) for concurrent HTTP requests

2 participants