func ReadRequestBody(r *http.Request) ([]byte, error) {
	if r.Body == nil {
		return nil, nil
	}
	b := r.Body

	content, err := ioutil.ReadAll(b)
	if err != nil {
		return nil, err
	}
	r.Body = ioutil.NopCloser(bytes.NewReader(content))
	return content, nil
}
// ReadRequestBody reads the request content into a byte array
ReadRequestBody reads the request content into a byte array
// ReadRequestBody reads the request content into a byte array
func ReadRequestBody(r *http.Request) ([]byte, error) {
	if r.Body == nil {
		return nil, nil
	}
	b := r.Body
	content, err := ioutil.ReadAll(b)
	if err != nil {
		return nil, err
	}
	r.Body = ioutil.NopCloser(bytes.NewReader(content))
	return content, nil
}
func ReadRequestBody ( r * http . Request ) ( [ ] byte , error ) { if r . Body == nil { return nil , nil } b := r . Body content , err := ioutil . ReadAll ( b ) if err != nil { return nil , err } r . Body = ioutil . NopCloser ( bytes . NewReader ( content ) ) return content , nil }
ReadRequestBody reads the request content into a byte array
ReadRequestBody reads the request content into a byte array