diff options
author | Luca Bruno <lucab@lucabruno.net> | 2023-03-13 11:29:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 10:29:05 +0000 |
commit | 3f26ee86048243e71a6616b1c1b3879dffabc01a (patch) | |
tree | e8de78fdd9012deb1860f74ba6dd1320f9af848c /runtime/examples/hello_runtime.rs | |
parent | e5673f5ed85774831234fe70290d5802bbd47c15 (diff) |
feat(ext/fetch): support fallible request-builder hooks (#18116)
This tweaks the signature of `request_builder_hook` in order to support
fallible hooks.
The rationale for this is mostly on two sides:
* it allows a hook to inspect and possibly drop an outgoing request
(e.g. for policying purposes), bubbling up a detailed error message to
the user.
* it wires into newer `reqwest` API which allows to split and then
reassemble a `RequestBuilder`, although only in a fallible way
(https://github.com/seanmonstar/reqwest/pull/1770)
Diffstat (limited to 'runtime/examples/hello_runtime.rs')
0 files changed, 0 insertions, 0 deletions