FAQ

On Wed, Oct 24, 2012 at 9:41 AM, Jackie Li wrote:
Seems the status code is written directly to the response body, and there is
no status code stored in http.Header, is it possible to get the status code
here?
ResponseWriter is an interface so you can just wrap it. For example
https://github.com/jmckaskill/krb-httpd/blob/master/proxy.go#L678

-- James

--

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 6 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedOct 24, '12 at 2:42p
activeOct 24, '12 at 7:25p
posts6
users4
websitegolang.org

People

Translate

site design / logo © 2017 Grokbase