Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions wit-0.3.0-draft/proxy.wit → wit-0.3.0-draft/service.wit
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package wasi:[email protected];

/// The `wasi:http/imports` world imports all the APIs for HTTP proxies.
/// The `wasi:http/imports` world imports all the APIs for HTTP services.
/// It is intended to be `include`d in other worlds.
world imports {
/// HTTP proxies have access to time and randomness.
/// HTTP services have access to time and randomness.
include wasi:clocks/[email protected];
import wasi:random/[email protected];

/// Proxies have standard output and error streams which are expected to
/// Services have standard output and error streams which are expected to
/// terminate in a developer-facing console provided by the host.
import wasi:cli/[email protected];
import wasi:cli/[email protected];
Expand All @@ -26,11 +26,11 @@ world imports {
import handler;
}

/// The `wasi:http/proxy` world captures a widely-implementable intersection of
/// The `wasi:http/service` world captures a widely-implementable intersection of
/// hosts that includes HTTP forward and reverse proxies. Components targeting
/// this world may concurrently stream in and out any number of incoming and
/// outgoing HTTP requests.
world proxy {
world service {
include imports;

/// The host delivers incoming HTTP requests to a component by calling the
Expand Down