Skip to content

Documentation and comments for runtime #24

Description

@esnible

The runtime lacks an explanation of parameters, return enumerations, and state managment.

For example, I see onRequestBody(body_buffer_length: usize, end_of_stream: bool): FilterDataStatusValues and see that FilterDataStatusValues are

  Continue = 0,
  StopIterationAndBuffer = 1,
  StopIterationAndWatermark = 2,
  StopIterationNoBuffer = 3

There is no explanation of these values in https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT either (for example, see proxy-wasm/spec#7 )

I suspect these values are defined at https://github.com/envoyproxy/envoy/blob/master/include/envoy/http/filter.h and that my use of the runtime must abide by the rules of https://www.envoyproxy.io/docs/envoy/latest/faq/extensions/contract.html?highlight#is-there-a-contract-my-http-filter-must-adhere-to

It would help a lot if this repository copied or linked to the adjacent Envoy filter documentation, if applicable. I have never written a native Envoy filter and lacking the context around the conventions of filter writing impedes my use of AssemblyScript.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions