func BodyDump(handler BodyDumpHandler) nio.MiddlewareFunc {
	c := DefaultBodyDumpConfig
	c.Handler = handler
	return BodyDumpWithConfig(c)
}
BodyDump returns a BodyDump middleware.

BodyLimit middleware captures the request and response payload and calls the
registered handler.
package mw
import (
	"bufio"
	"bytes"
	"io"
	"io/ioutil"
	"net"
	"net/http"
	"github.com/go-nio/nio"
)
type (
	BodyDumpConfig struct {
		Skipper nio.Skipper
		Handler BodyDumpHandler
	}
	BodyDumpHandler func(nio.Context, []byte, []byte)
	bodyDumpResponseWriter struct {
		io.Writer
		http.ResponseWriter
	}
)
var (
	DefaultBodyDumpConfig = BodyDumpConfig{
		Skipper: nio.DefaultSkipper,
	}
)