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/03/07 02:22:46 UTC

[GitHub] [apisix-go-plugin-runner] spacewander commented on a change in pull request #68: feat: add `rewrite:RespHeaders` and modify the upstream response ers via `request` implementation

spacewander commented on a change in pull request #68:
URL: https://github.com/apache/apisix-go-plugin-runner/pull/68#discussion_r820337351



##########
File path: pkg/http/http.go
##########
@@ -67,6 +67,9 @@ type Request interface {
 	//
 	// For run plugin, the context controls cancellation.
 	Context() context.Context
+	// RespHeader returns the response header

Review comment:
       RespHeader returns an `http.Header` which allows you to add or set response headers before reaching the upstream.
   Some built-in headers would not take effect, like ... 




-- 
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