- resp, err := c.httpClient.Post(url, "application/json", body)
+ var resp *http.Response
+
+ if method == http.MethodPost {
+ resp, err = c.httpClient.Post(url, "application/json", body)
+ } else if method == http.MethodDelete {
+ resp, err = c.httpClient.Delete(url, "application/json", body)
+ }