Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IncomingTrafficMeter ¶
type IncomingTrafficMeter struct { io.ReadCloser // contains filtered or unexported fields }
IncomingTrafficMeter counts the incoming bytes from the underlying request.Body.
func (IncomingTrafficMeter) BytesCount ¶
func (r IncomingTrafficMeter) BytesCount() int
BytesCount returns the number of transferred bytes
type OutgoingTrafficMeter ¶
type OutgoingTrafficMeter struct { // wrapper for underlying http.ResponseWriter. http.ResponseWriter // contains filtered or unexported fields }
OutgoingTrafficMeter counts the outgoing bytes through the responseWriter.
func (OutgoingTrafficMeter) BytesCount ¶
func (w OutgoingTrafficMeter) BytesCount() int
BytesCount returns the number of transferred bytes
func (*OutgoingTrafficMeter) Flush ¶
func (w *OutgoingTrafficMeter) Flush()
Flush calls the underlying Flush.
Click to show internal directories.
Click to hide internal directories.