This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 154
Is it possible reject http request OnHttpRequestHeaders
#122
Labels
question
Further information is requested
Comments
As you can see in the error, you MUST return |
Yes, I tried this, And got the same error func (ctx *httpHeaders) OnHttpRequestHeaders(numHeaders int, endOfStream bool) types.Action {
proxywasm.SendHttpResponse(401, [][2]string{
{"powered-by", "proxy-wasm-go-sdk!!"},
}, "reject")
return types.ActionPause
} |
This has something to do with envoyproxy/envoy#14957 and proxy-wasm/proxy-wasm-cpp-host#95 |
So it seems like a bug, And I should wait until ABI has been release? |
Actually, it's not an ABI issue at all but in Envoy's implementation detail. |
fixed in envoyproxy/envoy#15496 and irrelevant to this SDK so I'm closing. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've tried this demo code
and got error
The text was updated successfully, but these errors were encountered: