func VerifyBody(expectedBody []byte) http.HandlerFunc {
	return CombineHandlers(
		func(w http.ResponseWriter, req *http.Request) {
			body, err := ioutil.ReadAll(req.Body)
			req.Body.Close()
			Expect(err).ShouldNot(HaveOccurred())
			Expect(body).Should(Equal(expectedBody), "Body Mismatch")
		},
	)
}
func VerifyBody(expectedBody []byte) http.HandlerFunc {
	return CombineHandlers(
		func(w http.ResponseWriter, req *http.Request) {
			body, err := ioutil.ReadAll(req.Body)
			req.Body.Close()
			Expect(err).ShouldNot(HaveOccurred())
			Expect(body).Should(Equal(expectedBody), "Body Mismatch")
		},
	)
}
func VerifyBody ( expectedBody [ ] byte ) http . HandlerFunc { return CombineHandlers ( func ( w http . ResponseWriter , req * http . Request ) { body , err := ioutil . ReadAll ( req . Body ) req . Body . Close ( ) Expect ( err ) . ShouldNot ( HaveOccurred ( ) ) Expect ( body ) . Should ( Equal ( expectedBody ) , " " ) } , ) }
//VerifyBody returns a handler that verifies that the body of the request matches the passed in byte array.
//It does this using Equal().
VerifyBody returns a handler that verifies that the body of the request matches the passed in byte array . It does this using Equal () .