Files
kapow/internal/client/get.go
Roberto Abdelkader Martínez Pérez 6eb213a545 Adjust set and get to send no Content-Type
2019-10-03 20:57:40 +02:00

14 lines
289 B
Go

package client
import (
"io"
"github.com/BBVA/kapow/internal/http"
)
//GetData will perform the request and write the results on the provided writer
func GetData(host, id, path string, wr io.Writer) error {
url := host + "/handlers/" + id + path
return http.Get(url, "", nil, wr)
}