Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Create default Http context in Hello world example. (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathetake authored Dec 28, 2021
1 parent dd98b5f commit 0f8c8c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/helloworld/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@ func (ctx *helloWorld) OnTick() {
proxywasm.LogInfof("It's %d: random value: %d", t, rand.Uint64())
proxywasm.LogInfof("OnTick called")
}

// Override types.DefaultPluginContext.
func (*helloWorld) NewHttpContext(uint32) types.HttpContext { return &types.DefaultHttpContext{} }

0 comments on commit 0f8c8c1

Please sign in to comment.