@@ -12,7 +12,7 @@ use pin_project_lite::pin_project;
1212use std:: future:: Future ;
1313use std:: pin:: Pin ;
1414use std:: task:: { Context , Poll } ;
15- use wasi :: http:: types:: {
15+ use wasip2 :: http:: types:: {
1616 FutureIncomingResponse as WasiFutureIncomingResponse , OutgoingBody as WasiOutgoingBody ,
1717 RequestOptions as WasiRequestOptions ,
1818} ;
@@ -50,7 +50,7 @@ impl Client {
5050 let wasi_stream = wasi_body. write ( ) . unwrap ( ) ;
5151
5252 // 1. Start sending the request head
53- let res = wasi :: http:: outgoing_handler:: handle ( wasi_req, self . wasi_options ( ) ?) . unwrap ( ) ;
53+ let res = wasip2 :: http:: outgoing_handler:: handle ( wasi_req, self . wasi_options ( ) ?) . unwrap ( ) ;
5454
5555 // 2. Start sending the request body
5656 io:: copy ( body, AsyncOutputStream :: new ( wasi_stream) ) . await ?;
@@ -86,7 +86,7 @@ impl Client {
8686 let wasi_stream = wasi_body. write ( ) . unwrap ( ) ;
8787
8888 // Start sending the request head.
89- let res = wasi :: http:: outgoing_handler:: handle ( wasi_req, self . wasi_options ( ) ?) . unwrap ( ) ;
89+ let res = wasip2 :: http:: outgoing_handler:: handle ( wasi_req, self . wasi_options ( ) ?) . unwrap ( ) ;
9090
9191 let outgoing_body = OutgoingBody :: new ( AsyncOutputStream :: new ( wasi_stream) , wasi_body) ;
9292
@@ -141,7 +141,7 @@ impl Client {
141141 None => None ,
142142 } ;
143143
144- wasi :: http:: types:: OutgoingBody :: finish ( body, wasi_trailers)
144+ wasip2 :: http:: types:: OutgoingBody :: finish ( body, wasi_trailers)
145145 . expect ( "body length did not match Content-Length header value" ) ;
146146 Ok ( ( ) )
147147 }
0 commit comments