You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the HTTP transport Client to consume an existing web service. The problem is that the URLs are REST style, i.e. they are parameterized based on what you are retrieving. An example would be /api/bar/{id} where the variable id would be filled in at request time.
The problem is that the httptransport.NewClient function requires the URL be known at creation time. So my question is what is the go-kit way of handling URLs like this? Create a new Client every time? Modify the URL on the http.Request that is passed into the encode function?
Thanks!
Dave
The text was updated successfully, but these errors were encountered:
I am trying to use the HTTP transport
Client
to consume an existing web service. The problem is that the URLs are REST style, i.e. they are parameterized based on what you are retrieving. An example would be/api/bar/{id}
where the variableid
would be filled in at request time.The problem is that the
httptransport.NewClient
function requires the URL be known at creation time. So my question is what is the go-kit way of handling URLs like this? Create a newClient
every time? Modify the URL on thehttp.Request
that is passed into the encode function?Thanks!
Dave
The text was updated successfully, but these errors were encountered: