Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseStats ¶
type ResponseStats struct {
// contains filtered or unexported fields
}
ResponseStats is a ResponseWriter that records statistics about a response.
func New ¶
func New(w http.ResponseWriter) *ResponseStats
New returns a new ResponseStats that writes to w.
func (*ResponseStats) Header ¶
func (r *ResponseStats) Header() http.Header
func (*ResponseStats) Size ¶
func (r *ResponseStats) Size() int64
Size returns the number of bytes written to the underlying ResponseWriter.
func (*ResponseStats) StatusCode ¶
func (r *ResponseStats) StatusCode() int
StatusCode returns the status code sent with WriteHeader or 0 if WriteHeader has not been called.
func (*ResponseStats) WriteHeader ¶
func (r *ResponseStats) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.