@@ -205,7 +205,7 @@ interface types {
205205 /// list with the same key.
206206 entries : func () -> list <tuple <field-key ,field-value >>;
207207
208- /// Make a deep copy of the Fields. Equivelant in behavior to calling the
208+ /// Make a deep copy of the Fields. Equivalent in behavior to calling the
209209 /// `fields` constructor on the return value of `entries` . The resulting
210210 /// `fields` is mutable.
211211 clone : func () -> fields ;
@@ -310,7 +310,7 @@ interface types {
310310 /// `delete` operations will fail with `header-error.immutable` .
311311 ///
312312 /// This headers resource is a child: it must be dropped before the parent
313- /// `outgoing-request` is dropped, or its ownership is transfered to
313+ /// `outgoing-request` is dropped, or its ownership is transferred to
314314 /// another component by e.g. `outgoing-handler.handle` .
315315 headers : func () -> headers ;
316316 }
@@ -426,19 +426,19 @@ interface types {
426426 finish : static func (this : incoming-body ) -> future-trailers ;
427427 }
428428
429- /// Represents a future which may eventaully return trailers, or an error.
429+ /// Represents a future which may eventually return trailers, or an error.
430430 ///
431431 /// In the case that the incoming HTTP Request or Response did not have any
432432 /// trailers, this future will resolve to the empty set of trailers once the
433433 /// complete Request or Response body has been received.
434434 resource future-trailers {
435435
436436 /// Returns a pollable which becomes ready when either the trailers have
437- /// been received, or an error has occured . When this pollable is ready,
437+ /// been received, or an error has occurred . When this pollable is ready,
438438 /// the `get` method will return `some` .
439439 subscribe : func () -> pollable ;
440440
441- /// Returns the contents of the trailers, or an error which occured ,
441+ /// Returns the contents of the trailers, or an error which occurred ,
442442 /// once the future is ready.
443443 ///
444444 /// The outer `option` represents future readiness. Users can wait on this
@@ -450,7 +450,7 @@ interface types {
450450 ///
451451 /// The inner `result` represents that either the HTTP Request or Response
452452 /// body, as well as any trailers, were received successfully, or that an
453- /// error occured receiving them. The optional `trailers` indicates whether
453+ /// error occurred receiving them. The optional `trailers` indicates whether
454454 /// or not trailers were present in the body.
455455 ///
456456 /// When some `trailers` are returned by this method, the `trailers`
@@ -483,7 +483,7 @@ interface types {
483483 /// `delete` operations will fail with `header-error.immutable` .
484484 ///
485485 /// This headers resource is a child: it must be dropped before the parent
486- /// `outgoing-request` is dropped, or its ownership is transfered to
486+ /// `outgoing-request` is dropped, or its ownership is transferred to
487487 /// another component by e.g. `outgoing-handler.handle` .
488488 headers : func () -> headers ;
489489
@@ -507,7 +507,7 @@ interface types {
507507 ///
508508 /// If the user code drops this resource, as opposed to calling the static
509509 /// method `finish` , the implementation should treat the body as incomplete,
510- /// and that an error has occured . The implementation should propogate this
510+ /// and that an error has occurred . The implementation should propagate this
511511 /// error to the HTTP protocol by whatever means it has available,
512512 /// including: corrupting the body on the wire, aborting the associated
513513 /// Request, or sending a late status code for the Response.
@@ -539,14 +539,14 @@ interface types {
539539 ) -> result <_ , error-code >;
540540 }
541541
542- /// Represents a future which may eventaully return an incoming HTTP
542+ /// Represents a future which may eventually return an incoming HTTP
543543 /// Response, or an error.
544544 ///
545545 /// This resource is returned by the `wasi:http/outgoing-handler` interface to
546546 /// provide the HTTP Response corresponding to the sent Request.
547547 resource future-incoming-response {
548548 /// Returns a pollable which becomes ready when either the Response has
549- /// been received, or an error has occured . When this pollable is ready,
549+ /// been received, or an error has occurred . When this pollable is ready,
550550 /// the `get` method will return `some` .
551551 subscribe : func () -> pollable ;
552552
@@ -560,8 +560,8 @@ interface types {
560560 /// is `some` , and error on subsequent calls.
561561 ///
562562 /// The inner `result` represents that either the incoming HTTP Response
563- /// status and headers have recieved successfully, or that an error
564- /// occured . Errors may also occur while consuming the response body,
563+ /// status and headers have received successfully, or that an error
564+ /// occurred . Errors may also occur while consuming the response body,
565565 /// but those will be reported by the `incoming-body` and its
566566 /// `output-stream` child.
567567 get : func () -> option <result <result <incoming-response , error-code >>>;
0 commit comments