func NewHTTPRequestWithURL(method, url string, req *Request) (*http.Request, error) {
	data, err := json.Marshal(req)
	if err != nil {
		return nil, err
	}

	return http.NewRequest(
		method, url, bytes.NewReader(data))
}
func NewHTTPRequestWithURL(method, url string, req *Request) (*http.Request, error) {
	data, err := json.Marshal(req)
	if err != nil {
		return nil, err
	}

	return http.NewRequest(
		method, url, bytes.NewReader(data))
}
func NewHTTPRequestWithURL ( method , url string , req * Request ) ( * http . Request , error ) { data , err := json . Marshal ( req ) if err != nil { return nil , err } return http . NewRequest ( method , url , bytes . NewReader ( data ) ) }
// NewHTTPRequestWithURL creates a new HTTP request for a given url.
NewHTTPRequestWithURL creates a new HTTP request for a given url .