responsestats

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2019 License: Apache-2.0, BSD-2-Clause Imports: 1 Imported by: 0

README

URL: https://bitbucket.org/zombiezen/webapp/raw/e8e50517d046ec609849429e0dc4d48cf5c81c3a/handler.go
Version: e8e50517d046ec609849429e0dc4d48cf5c81c3a
License: BSD
License File: LICENSE

Description:
The ResponseStats type from bitbucket.org/zombiezen/webapp.

Local Modifications:
No Modifications.

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

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) Write

func (r *ResponseStats) Write(p []byte) (n int, err error)

func (*ResponseStats) WriteHeader

func (r *ResponseStats) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL