diff --git a/docs/reference/wasi/incoming-http.md b/docs/reference/wasi/incoming-http.md index 195d3912..49820060 100644 --- a/docs/reference/wasi/incoming-http.md +++ b/docs/reference/wasi/incoming-http.md @@ -105,7 +105,7 @@ corresponding to a clock tick.

subscribe-instant: func

Create a pollable which will resolve once the specified instant -occurred.

+occured.

Params

[method]output-stream.splice: func

Read from one stream and write to another.

-

The behavior of splice is equivalent to:

+

The behavior of splice is equivelant to:

  1. calling check-write on the output-stream
  2. calling read on the input-stream with the smaller of the @@ -676,7 +676,7 @@ an input-stream and the delivery of tra and ensures that the user of this interface may only be consuming either the body contents or waiting on trailers at any given time.

    resource future-trailers

    -

    Represents a future which may eventually return trailers, or an error.

    +

    Represents a future which may eventaully return trailers, or an error.

    In the case that the incoming HTTP Request or Response did not have any trailers, this future will resolve to the empty set of trailers once the complete Request or Response body has been received.

    @@ -693,12 +693,12 @@ optional trailers) with a static function that consumes the may not write to the body contents after the body has been finished.

    If the user code drops this resource, as opposed to calling the static method finish, the implementation should treat the body as incomplete, -and that an error has occurred. The implementation should propagate this +and that an error has occured. The implementation should propogate this error to the HTTP protocol by whatever means it has available, including: corrupting the body on the wire, aborting the associated Request, or sending a late status code for the Response.

    resource future-incoming-response

    -

    Represents a future which may eventually return an incoming HTTP +

    Represents a future which may eventaully return an incoming HTTP Response, or an error.

    This resource is returned by the wasi:http/outgoing-handler interface to provide the HTTP Response corresponding to the sent Request.

    @@ -830,7 +830,7 @@ list with the same key.

  3. list<(field-key, field-value)>
  4. [method]fields.clone: func

    -

    Make a deep copy of the Fields. Equivalent in behavior to calling the +

    Make a deep copy of the Fields. Equivelant in behavior to calling the fields constructor on the return value of entries. The resulting fields is mutable.

    Params
    @@ -1041,7 +1041,7 @@ not a syntactically valid uri authority.

    The returned headers resource is immutable: set, append, and delete operations will fail with header-error.immutable.

    This headers resource is a child: it must be dropped before the parent -outgoing-request is dropped, or its ownership is transferred to +outgoing-request is dropped, or its ownership is transfered to another component by e.g. outgoing-handler.handle.

    Params

    [method]future-trailers.subscribe: func

    Returns a pollable which becomes ready when either the trailers have -been received, or an error has occurred. When this pollable is ready, +been received, or an error has occured. When this pollable is ready, the get method will return some.

    Params

    [method]future-trailers.get: func

    -

    Returns the contents of the trailers, or an error which occurred, +

    Returns the contents of the trailers, or an error which occured, once the future is ready.

    The outer option represents future readiness. Users can wait on this option to become some using the subscribe method.

    @@ -1227,7 +1227,7 @@ once. It will be success on the first call in which the outer option is some, and error on subsequent calls.

    The inner result represents that either the HTTP Request or Response body, as well as any trailers, were received successfully, or that an -error occurred receiving them. The optional trailers indicates whether +error occured receiving them. The optional trailers indicates whether or not trailers were present in the body.

    When some trailers are returned by this method, the trailers resource is immutable, and a child. Use of the set, append, or @@ -1283,7 +1283,7 @@ given is not a valid http status code.

    The returned headers resource is immutable: set, append, and delete operations will fail with header-error.immutable.

    This headers resource is a child: it must be dropped before the parent -outgoing-request is dropped, or its ownership is transferred to +outgoing-request is dropped, or its ownership is transfered to another component by e.g. outgoing-handler.handle.

    Params

    [method]future-incoming-response.subscribe: func

    Returns a pollable which becomes ready when either the Response has -been received, or an error has occurred. When this pollable is ready, +been received, or an error has occured. When this pollable is ready, the get method will return some.

    Params

    [method]output-stream.subscribe: func

    Create a pollable which will resolve once the output-stream -is ready for more writing, or an error has occurred. When this +is ready for more writing, or an error has occured. When this pollable is ready, check-write will return ok(n) with n>0, or an error.

    If the stream is closed, this pollable is always ready immediately.

    @@ -396,7 +396,7 @@ let _ = this.check-write(); // eliding error handling

    [method]output-stream.splice: func

    Read from one stream and write to another.

    -

    The behavior of splice is equivalent to:

    +

    The behavior of splice is equivelant to:

    1. calling check-write on the output-stream
    2. calling read on the input-stream with the smaller of the diff --git a/docs/reference/wasi/wrpc-interfaces.md b/docs/reference/wasi/wrpc-interfaces.md index 0be9351c..6420869a 100644 --- a/docs/reference/wasi/wrpc-interfaces.md +++ b/docs/reference/wasi/wrpc-interfaces.md @@ -633,7 +633,7 @@ and stream is ready for writing again.

      [method]output-stream.subscribe: func

      Create a pollable which will resolve once the output-stream -is ready for more writing, or an error has occurred. When this +is ready for more writing, or an error has occured. When this pollable is ready, check-write will return ok(n) with n>0, or an error.

      If the stream is closed, this pollable is always ready immediately.

      @@ -696,7 +696,7 @@ let _ = this.check-write(); // eliding error handling

      [method]output-stream.splice: func

      Read from one stream and write to another.

      -

      The behavior of splice is equivalent to:

      +

      The behavior of splice is equivelant to:

      1. calling check-write on the output-stream
      2. calling read on the input-stream with the smaller of the