wasi-http icon indicating copy to clipboard operation
wasi-http copied to clipboard

Expose protocol version

Open lann opened this issue 1 year ago • 1 comments

e.g.:

variant version {
  HTTP11,
  HTTP20,
  HTTP30,
  other(string),
}

incoming-request-version: func(request: incoming-request) -> version

It would be nice to make the labels e.g. HTTP-1-1, but this isn't currently allowed; see https://github.com/WebAssembly/component-model/issues/134

lann avatar Apr 19 '23 13:04 lann