@@ -12,7 +12,7 @@ use pin_project_lite::pin_project;
12
12
use std:: future:: Future ;
13
13
use std:: pin:: Pin ;
14
14
use std:: task:: { Context , Poll } ;
15
- use wasi :: http:: types:: {
15
+ use wasip2 :: http:: types:: {
16
16
FutureIncomingResponse as WasiFutureIncomingResponse , OutgoingBody as WasiOutgoingBody ,
17
17
RequestOptions as WasiRequestOptions ,
18
18
} ;
@@ -50,7 +50,7 @@ impl Client {
50
50
let wasi_stream = wasi_body. write ( ) . unwrap ( ) ;
51
51
52
52
// 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 ( ) ;
54
54
55
55
// 2. Start sending the request body
56
56
io:: copy ( body, AsyncOutputStream :: new ( wasi_stream) ) . await ?;
@@ -86,7 +86,7 @@ impl Client {
86
86
let wasi_stream = wasi_body. write ( ) . unwrap ( ) ;
87
87
88
88
// 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 ( ) ;
90
90
91
91
let outgoing_body = OutgoingBody :: new ( AsyncOutputStream :: new ( wasi_stream) , wasi_body) ;
92
92
@@ -141,7 +141,7 @@ impl Client {
141
141
None => None ,
142
142
} ;
143
143
144
- wasi :: http:: types:: OutgoingBody :: finish ( body, wasi_trailers)
144
+ wasip2 :: http:: types:: OutgoingBody :: finish ( body, wasi_trailers)
145
145
. expect ( "body length did not match Content-Length header value" ) ;
146
146
Ok ( ( ) )
147
147
}
0 commit comments