FAQ

On Sat, Mar 5, 2016 at 3:55 PM, Tomi Häsä wrote:

I have been looking at the ResponseWriter example for the http package. To
me it looks the Header function has a Set function. How should I understand
that example?

The line I'm talking about:

w.Header().Set("Trailer", "AtEnd1, AtEnd2")
It does.
https://golang.org/pkg/net/http/#Header.Set

  Check out the net/http docs. Lots of good stuff there. Some of which may
prevent you from rewriting some of the nice helper functions.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 7 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMar 5, '16 at 8:56p
activeMar 6, '16 at 3:16a
posts7
users5
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase