func (r *ResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
	if hijacker, ok := r.ResponseWriter.(http.Hijacker); ok {
		return hijacker.Hijack()
	}
	return nil, nil, errors.New("Wrapped response does not implement http.Hijacker")
}
Hijack delegates to the wrapped ResponseWriter, returning an error if the delegate does
not implement http.Hijacker.
package health
import (
	"bufio"
	"errors"
	"net"
	"net/http"
)
func Wrap(delegate http.ResponseWriter) *ResponseWriter {
	return &ResponseWriter{
		ResponseWriter: delegate,
	}
}
type ResponseWriter struct {
	http.ResponseWriter
	statusCode int
}
func (r *ResponseWriter) StatusCode() int {
	return r.statusCode
}
func (r *ResponseWriter) WriteHeader(statusCode int) {
	r.statusCode = statusCode
	r.ResponseWriter.WriteHeader(statusCode)
}
func (r *ResponseWriter) CloseNotify() <-chan bool {
	if closeNotifier, ok := r.ResponseWriter.(http.CloseNotifier); ok {
		return closeNotifier.CloseNotify()
	}
	panic(errors.New("Wrapped response does not implement http.CloseNotifier"))
}