Revert "First stage of access logging middleware. Initially without any output appenders."
This reverts commit 73a1b172ed
.
This commit is contained in:
parent
a5384bae47
commit
82651985c4
9 changed files with 34 additions and 447 deletions
|
@ -1,18 +0,0 @@
|
|||
package accesslog
|
||||
|
||||
import "io"
|
||||
|
||||
type captureRequestReader struct {
|
||||
source io.ReadCloser
|
||||
count int64
|
||||
}
|
||||
|
||||
func (r *captureRequestReader) Read(p []byte) (int, error) {
|
||||
n, err := r.source.Read(p)
|
||||
r.count += int64(n)
|
||||
return n, err
|
||||
}
|
||||
|
||||
func (r *captureRequestReader) Close() error {
|
||||
return r.source.Close()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue