Skip to content

Commit 10a3d63

Browse files
lannlukewagner
andcommitted
Adopt PR feedback
Co-authored-by: Luke Wagner <mail@lukewagner.name>
1 parent 6ee48a5 commit 10a3d63

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

wit-0.3.0-draft/worlds.wit

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ world service {
3535

3636
/// The `wasi:http/middleware` world captures HTTP services that forward HTTP
3737
/// Requests to another handler.
38-
///
38+
///
3939
/// Components may implement this world to allow them to participate in handler
40-
/// "chains" where a Request flows through handlers on its way to some terminal
41-
/// `service` and corresponding Responses flow in the opposite direction.
40+
/// "chains" where a `request` flows through handlers on its way to some terminal
41+
/// `service` and corresponding `response` flows in the opposite direction.
4242
world middleware {
4343
include service;
4444
import handler;
4545
}
4646

4747
/// This interface defines a handler of HTTP Requests.
48-
///
48+
///
4949
/// In a `wasi:http/service` this interface is exported to respond to an
5050
/// incoming HTTP Request with a Response.
51-
///
51+
///
5252
/// In `wasi:http/middleware` this interface is both exported and imported as
5353
/// the "downstream" and "upstream" directions of the middleware chain.
5454
interface handler {
@@ -62,10 +62,10 @@ interface handler {
6262
}
6363

6464
/// This interface defines an HTTP client for sending "outgoing" requests.
65-
///
65+
///
6666
/// Most components are expected to import this interface to provide the
6767
/// capability to send HTTP requests to arbitrary destinations on a network.
68-
///
68+
///
6969
/// The type signature of `client.send` is the same as `handler.handle`. This
7070
/// duplication is currently necessary because some Component Model tooling
7171
/// (including WIT itself) is unable to represent a component importing two

0 commit comments

Comments
 (0)