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) BytesRead ¶
func (r *IncomingTrafficMeter) BytesRead() int64
BytesRead 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) BytesWritten ¶
func (w *OutgoingTrafficMeter) BytesWritten() int64
BytesWritten 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.