File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
crates/spin-wasip3-http/src
wasip3-concurrent-outbound-http-calls/src Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 55#[ doc( hidden) ]
66pub use wasip3;
77
8+ pub use wasip3:: {
9+ http_compat:: { IncomingMessage , Request , Response } ,
10+ wit_bindgen:: { self , spawn} ,
11+ wit_future, wit_stream,
12+ } ;
13+
814use hyperium as http;
915use std:: any:: Any ;
10- pub use wasip3:: http_compat:: { Request , Response } ;
1116use wasip3:: {
1217 http:: types,
1318 http_compat:: {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ async fn handle_concurrent_outbound_http_calls(_req: spin_sdk::http_wasip3::Requ
2626 // Spawn a task to run the application logic and stream the results
2727 // to the client. `spawn` continues to run this future even after the
2828 // function has exited with the return of the Response object.
29- spin_sdk:: http_wasip3:: wasip3 :: wit_bindgen :: spawn (
29+ spin_sdk:: http_wasip3:: spawn (
3030 handle_concurrent_outbound_http_calls_impl ( tx)
3131 ) ;
3232
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ async fn handle_wasip3_streaming(request: Request) -> impl IntoResponse {
3030
3131 // Use wit_bindgen::spawn to allow the async block to keep running
3232 // after the handler returns.
33- spin_sdk:: http_wasip3:: wasip3 :: wit_bindgen :: spawn ( async move {
33+ spin_sdk:: http_wasip3:: spawn ( async move {
3434 tx. send ( "-- INBOUND MESSAGE --\n " . into ( ) ) . await . unwrap ( ) ;
3535 // Keep processing data from the incoming body stream until it ends...
3636 loop {
You can’t perform that action at this time.
0 commit comments