// CreateRequest creates a HTTP request according to provided method and url.
// Headers are added to the request.
CreateRequest creates a HTTP request according to provided method and url.
Headers are added to the request.
// CreateRequest creates a HTTP request according to provided method and url . // Headers are added to the request .
func createRequest(m, u string, h map[string]string) (*http.Request, error) {
	req, err := http.NewRequest(m, u, nil)
	if err != nil {
		return nil, err
	}
	for k, v := range h {
		req.Header.Set(k, v)
	}
	return req, nil
}
func createRequest ( m , u string , h map [ string ] string ) ( * http . Request , error ) { req , err := http . NewRequest ( m , u , nil ) if err != nil { return nil , err } for k , v := range h { req . Header . Set ( k , v ) } return req , nil }
CreateRequest creates a HTTP request according to provided method and url.
CreateRequest creates a HTTP request according to provided method and url .