You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the middleware function is under Request.
I am trying to create and reuse a client, a sign will be calculated base on the url path and query.
Is it possible that I can create a http client with applied middleware before know about any uri and http methods?
Basically it's request/response interceptor.
for example:
let client = surf::Client::new();let client = client.middleware(...)// no middleware func exist in the clientletrequest = Request{ client }// the middleware func will be executed before sending out the request
request.client.get("https://httpbin.org/get").recv_string();