File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -6,21 +6,20 @@ package wasi:http;
6
6
/// outgoing HTTP requests.
7
7
world proxy {
8
8
/// HTTP proxies have access to time and randomness.
9
- import wasi :clocks /wall-clock ;
10
- import wasi :clocks /monotonic-clock ;
11
- import wasi :clocks /timezone ;
12
- import wasi :random /random ;
9
+ import wasi :clocks /wall-clock @ 0.2.0-rc-2023-11-10 ;
10
+ import wasi :clocks /monotonic-clock @ 0.2.0-rc-2023-11-10 ;
11
+ import wasi :random /random @ 0.2.0-rc-2023-11-10 ;
13
12
14
13
/// Proxies have standard output and error streams which are expected to
15
14
/// terminate in a developer-facing console provided by the host.
16
- import wasi :cli /stdout ;
17
- import wasi :cli /stderr ;
15
+ import wasi :cli /stdout @ 0.2.0-rc-2023-11-10 ;
16
+ import wasi :cli /stderr @ 0.2.0-rc-2023-11-10 ;
18
17
19
18
/// TODO: this is a temporary workaround until component tooling is able to
20
19
/// gracefully handle the absence of stdin. Hosts must return an eof stream
21
20
/// for this import, which is what wasi-libc + tooling will do automatically
22
21
/// when this import is properly removed.
23
- import wasi :cli /stdin ;
22
+ import wasi :cli /stdin @ 0.2.0-rc-2023-11-10 ;
24
23
25
24
/// This is the default handler to use when user code simply wants to make an
26
25
/// HTTP request (e.g., via `fetch()` ).
Original file line number Diff line number Diff line change 2
2
/// HTTP Requests and Responses, both incoming and outgoing, as well as
3
3
/// their headers, trailers, and bodies.
4
4
interface types {
5
- use wasi :clocks /monotonic-clock . {duration };
6
- use wasi :io /streams . {input-stream , output-stream , error as stream-error };
7
- use wasi :io /poll . {pollable };
5
+ use wasi :clocks /monotonic-clock @ 0.2.0-rc-2023-11-10 . {duration };
6
+ use wasi :io /streams @ 0.2.0-rc-2023-11-10 . {input-stream , output-stream , error as stream-error };
7
+ use wasi :io /poll @ 0.2.0-rc-2023-11-10 . {pollable };
8
8
9
9
/// This type corresponds to HTTP standard Methods.
10
10
variant method {
You can’t perform that action at this time.
0 commit comments