You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pharrisee I have thought about your idea. A way to manipulate the headers for each request at application level.
Having more flexibility and control of reply in aah framework is important. So I'm planning to add following enhancement in HTTP Engine-
OnHeaderReply - Called for each reply from aah server. At this point all the headers from aah have been written on the response writer except Header Status.
aah.AppHTTPEngine().OnHeaderReply(HandleHeader)
funcHandleHeader(e*aah.Event) {
hdr:=e.Data.(http.Header)
// Header instance is direct reference to http.ResponseWritter// Change reflects immediately :)//// logic goes here
}
After reading this:
https://www.fastly.com/blog/headers-we-dont-want
It struck me that there doesn't seem to be a way to remove headers on an app-wide basis.
What would be the best way to achieve this? OnPreReply hook?
Could there be a config option for custom header inclusion and exclusion?
The text was updated successfully, but these errors were encountered: