Skip to content

Commit

Permalink
feat: add move from dynectsoap to dynsoap
Browse files Browse the repository at this point in the history
  • Loading branch information
PG2000 committed Apr 18, 2021
1 parent ca3d3f8 commit 73c6fc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/dyn/soap/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/hooklift/gowsdl/soap"
)

// Returns a Dynect Client with a configured http.Client
// NewDynectClient returns a client with a configured http.Client
// The default settings for the http.client are a timeout of
// 10 seconds and reading proxy variables from http.ProxyFromEnvironment
func NewDynectClient(url string) Dynect {
Expand All @@ -37,7 +37,7 @@ func NewDynectClient(url string) Dynect {
return NewDynect(soapClient)
}

// Returns a Dynect Client without a configured http.Client
// NewCustomDynectClient returns a client without a configured http.Client
func NewCustomDynectClient(url string, client http.Client) Dynect {
soapClient := soap.NewClient(url, soap.WithHTTPClient(&client))
return NewDynect(soapClient)
Expand Down

0 comments on commit 73c6fc9

Please sign in to comment.