How to set response headers in a GET request?

I couldn’t find any resource online about this specific topic, only about cookies. Does anybody know a simple way to do that?

Setting HTTP response headers can be done using

http.ResponseWriter.Header().Set("Header-Name", "header value")

See

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.