You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/06/21 06:47:50 UTC

[GitHub] [apisix-go-plugin-runner] spacewander commented on a diff in pull request #91: feat: add example for ResponseFilter

spacewander commented on code in PR #91:
URL: https://github.com/apache/apisix-go-plugin-runner/pull/91#discussion_r902220204


##########
cmd/go-runner/plugins/say.go:
##########
@@ -65,6 +65,16 @@ func (p *Say) RequestFilter(conf interface{}, w http.ResponseWriter, r pkgHTTP.R
 	}
 }
 
-func (p *Say) ResponseFilter(interface{}, pkgHTTP.Response) {
+func (p *Say) ResponseFilter(conf interface{}, w pkgHTTP.Response) {

Review Comment:
   We need to use a new plugin to test the Response filter, as the route with Say plugin will not run the ext-plugin-post-resp plugin. It will be intercepted before the request reaches the upstream.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org