Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPResponse ¶
func HTTPResponse(w http.ResponseWriter, status int, format string, args ...interface{})
func IsAlive ¶
func IsAlive(w http.ResponseWriter) bool
func NewResponseWriter ¶
func NewResponseWriter(w http.ResponseWriter) http.ResponseWriter
Types ¶
type ResponseWriter ¶
type ResponseWriter struct { http.ResponseWriter HTTPStatus int HTTPError string ResponseLength int64 // contains filtered or unexported fields }
ResponseWriter is a wrapper for http.ResponseWriter
func (*ResponseWriter) CloseNotify ¶
func (resp *ResponseWriter) CloseNotify() <-chan bool
func (*ResponseWriter) WriteHeader ¶
func (resp *ResponseWriter) WriteHeader(status int)
Click to show internal directories.
Click to hide internal directories.