# Constants
BodyKindRequest represents an operation on an HTTP request body.
BodyKindResponse represents an operation on an HTTP request body.
FeatureBufferRequest buffers the HTTP request body when reading, so that FuncNext can see the original.
FeatureBufferResponse buffers the HTTP response produced by FuncNext instead of sending it immediately.
FeatureTrailers allows guests to act differently depending on if the host supports HTTP trailing headers (trailers) or not.
FuncAddHeaderValue adds a single value for the given HeaderKind and name.
FuncEnableFeatures tries to enable the given features and returns the Features bitflag supported by the host.
FuncGetConfig writes configuration from the host to memory if it exists and isn't larger than BufLimit.
FuncGetHeaderNames writes all names for the given HeaderKind, NUL-terminated, to memory if the encoded length isn't larger than BufLimit.
FuncGetHeaderValues writes all values of the given HeaderKind and name, NUL-terminated, to memory if the encoded length isn't larger than BufLimit.
FuncGetMethod writes the method to memory if it isn't larger than BufLimit.
FuncGetProtocolVersion writes the HTTP protocol version to memory if it isn't larger than BufLimit.
FuncGetStatusCode returns the status code produced by FuncNext.
FuncGetTemplate writes the template to memory if it isn't larger than BufLimit.
FuncGetURI writes the URI to memory if it isn't larger than BufLimit.
FuncHandleRequest is the entrypoint guest export called by the host when processing a request.
FuncHandleResponse is called by the host after processing the next handler when the guest returns CtxNext `next=1` from FuncHandleRequest.
FuncLog logs a message to the host's logs at the given api.LogLevel.
FuncLogEnabled returns 1 if the api.LogLevel is enabled.
FuncReadBody reads up to BufLimit bytes remaining in the BodyKind body into memory at offset `buf`.
FuncRemoveHeader removes any values for the given HeaderKind and name.
FuncSetHeaderValue overwrites all values of the given HeaderKind and name with the input.
FuncSetMethod overwrites the method with one read from memory.
FuncSetStatusCode overrides the status code.
FuncSetTemplate overwrites the template with one read from memory.
FuncSetURI overwrites the URI with one read from memory.
FuncWriteBody reads `buf_len` bytes at memory offset `buf` and writes them to the pending BodyKind body.
HeaderKindRequest represents an operation on HTTP request headers.
HeaderKindRequestTrailers represents an operation on HTTP request trailers (trailing headers).
HeaderKindResponse represents an operation on HTTP response headers.
HeaderKindResponseTrailers represents an operation on HTTP response trailers (trailing headers).
HostModule is the WebAssembly module name of the ABI this middleware implements.
# Structs
No description provided by the author
# Interfaces
Host supports the host side of the WebAssembly module named HostModule.
Middleware is a factory of handler instances implemented in Wasm.
# Type aliases
No description provided by the author
BufLimit is the possibly zero maximum length of a result value to write in bytes.
CountLen describes a possible empty sequence of NUL-terminated strings.
CtxNext is the result of FuncHandleRequest.
EOFLen is the result of FuncReadBody which allows callers to know if the bytes returned are the end of the stream.
Features is a bit flag of features a host may support.
No description provided by the author