Improved performance
This commit is contained in:
parent
b30dad77dc
commit
6640143ace
3 changed files with 10 additions and 7 deletions
|
@ -1,11 +0,0 @@
|
|||
package server_test
|
||||
|
||||
import "net/http"
|
||||
|
||||
// NullResponse implements the http.ResponseWriter interface with
|
||||
// empty methods to better understand memory usage in benchmarks.
|
||||
type NullResponse struct{}
|
||||
|
||||
func (r *NullResponse) Header() http.Header { return nil }
|
||||
func (r *NullResponse) Write([]byte) (int, error) { return 0, nil }
|
||||
func (r *NullResponse) WriteHeader(int) {}
|
Loading…
Add table
Add a link
Reference in a new issue