Use the [`net/http.MaxBytesReader`](https://golang.org/pkg/net/http/#MaxBytesReader) function to limit the size of incoming requests in order to protect against DoS attacks.
Use the
net/http.MaxBytesReaderfunction to limit the size of incoming requests in order to protect against DoS attacks.