phreed commented on issue #6123:
URL: https://github.com/apache/opendal/issues/6123#issuecomment-2845677644

   Here is the final code fragment used.
   ```rust
    let url = reqwest::Url::from_str(&uri.to_string()).map_err(|err| {
       Error::new(ErrorKind::Unexpected, "request url is invalid")
           .with_operation("http_util::Client::send::fetch")
           .with_context("url", uri.to_string())
           .set_source(err)
   })?;
   
   let mut req_builder = self.request(parts.method, url).headers(parts.headers);
   ```
   The first step verifies the correctness of the uri, the second creates the 
req_builder.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to