Uh oh!
There was an error while loading. Please reload this page.
refactor: Remove Body's Once variant - #2923
Conversation
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
seanmonstar
commented
Jul 28, 2022
Looks like a couple tests that were using the |
Xuanwo
commented
Jul 29, 2022
pubfnget(&self,uri:Uri) -> ResponseFuturewhereB:Default,
|
seanmonstar
commented
Jul 29, 2022
No, that method doesn't need to be removed (yet). Just change the tests to use |
Xuanwo
commented
Jul 30, 2022
I'm feeling challenged to migrate tests like In those tests, both request and response depend on Any ideas? |
seanmonstar
commented
Jul 30, 2022
I just took a look, and this should be able to fix it: typeEmpty = http_body_util::Empty<Bytes>;let service = service_fn(|_:Request<Body>| future::ok::<_, hyper::Error>(Response::new(Empty::new())));// ...let req = Request::builder().uri(format!("http://{}/", addr)).body(Empty::new()).expect("request builder");You don't need to change the |
seanmonstar
commented
Aug 24, 2022
Thanks so much for taking it so far! I took care of merge conflicts and finishing out the examples, and completed it in #2922. |
Signed-off-by: Xuanwo github@xuanwo.io
Fix#2922
I'm not sure whether I correctly did this, PTAL.