This repository was archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Options #48
Copy link
Copy link
Open
Description
Applications may want to access the content via a proxy. Or to disable certificate verification. Or to limit the bandwidth. Or force HTTP/2 or HTTP/3 usage. Or set whatever knobs a specific runtime provides.
curl has a bazillion options. And applications actually use these.
We can't possibly add extra parameters for all of these, especially as new needs may come up over time.
So, maybe what we can do is introduce an Options handle, on top of which (key, value)-type options can be set.
And the req() function optionally accepts such a handle.
This allows the API to be extended, even with implementation-specific features, without breaking it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels