I think Tide & Surf's focus on ergonomics predicates this should happen, even if it's not the most efficient.
Were it for efficiency alone we would not have the top-level http-verb quick methods.
Hopefully the notice in the docs will put people in the correct direction for most cases.
This adds an optional middleware stack to Request, allowing RequestBuilder and one-off requests to have middleware added onto them, but also allows one-off requests with middleware to have the middleware stack be appended to client middleware for just that request.
I think Tide & Surf's focus on ergonomics predicates this should happen, even if it's not the most efficient. Were it for efficiency alone we would not have the top-level http-verb quick methods. Hopefully the notice in the docs will put people in the correct direction for most cases.
This adds an optional middleware stack to
Request
, allowingRequestBuilder
and one-off requests to have middleware added onto them, but also allows one-off requests with middleware to have the middleware stack be appended to client middleware for just that request.Closes https://github.com/http-rs/surf/issues/261