Skip to content

Commit

Permalink
use the brand new transport package
Browse files Browse the repository at this point in the history
  • Loading branch information
kpacha committed Oct 30, 2018
1 parent 762918c commit 19c451c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions http.go
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/devopsfaith/krakend/config"
"github.com/devopsfaith/krakend/proxy"
"github.com/devopsfaith/krakend/transport/http/client"
"github.com/gregjones/httpcache"
)

Expand All @@ -19,10 +20,10 @@ var (
)

// NewHTTPClient creates a HTTPClientFactory using an in-memory-cached http client
func NewHTTPClient(cfg *config.Backend) proxy.HTTPClientFactory {
func NewHTTPClient(cfg *config.Backend) client.HTTPClientFactory {
_, ok := cfg.ExtraConfig[Namespace]
if !ok {
return proxy.NewHTTPClient
return client.NewHTTPClient
}
return func(_ context.Context) *http.Client {
return &memClient
Expand Down

0 comments on commit 19c451c

Please sign in to comment.