(w http.ResponseWriter, r *http.Request)
| 252 | } |
| 253 | |
| 254 | func (h maxBytesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 255 | r.Body = http.MaxBytesReader(w, r.Body, h.n) |
| 256 | h.h.ServeHTTP(w, r) |
| 257 | } |
| 258 | |
| 259 | // Listen starts a new net.Listener on the given address. |
| 260 | // It returns an error if the address is invalid or the call to Listen() fails. |
no outgoing calls