Skip to content

WebAssembly for Proxies (Golang host implementation)

License

Notifications You must be signed in to change notification settings

PhilYue/proxy-wasm-go-host

This branch is 17 commits behind mosn/proxy-wasm-go-host:main.

Folders and files

NameName
Last commit message
Last commit date
Apr 22, 2022
Apr 22, 2021
May 24, 2021
Apr 22, 2022
Apr 22, 2021
May 24, 2021
Mar 11, 2021
Mar 11, 2021
Mar 5, 2021
Apr 22, 2022
Apr 22, 2022

Repository files navigation

WebAssembly for Proxies (GoLang host implementation)

The GoLang implementation for proxy-wasm, enabling developer to run proxy-wasm extensions in Go.

Run Example

  • build and run host
cd example
go run .
  • send http request
curl http://127.0.0.1:2045/
  • host log
receive request /
print header from server host, User-Agent -> [curl/7.64.1]
print header from server host, Accept -> [*/*]
[http_wasm_example.cc:33]::onRequestHeaders() print from wasm, onRequestHeaders, context id: 2
[http_wasm_example.cc:38]::onRequestHeaders() print from wasm, Accept -> */*
[http_wasm_example.cc:38]::onRequestHeaders() print from wasm, User-Agent -> curl/7.64.1

references

About

WebAssembly for Proxies (Golang host implementation)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.0%
  • C++ 1.0%