File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -797,7 +797,7 @@ client.SetTimeout(1 * time.Minute)
797
797
// You can override all below settings and options at request level if you want to
798
798
// --------------------------------------------------------------------------------
799
799
// Host URL for all request. So you can use relative URL in the request
800
- client.SetHostURL (" http://httpbin.org" )
800
+ client.SetBaseURL (" http://httpbin.org" )
801
801
802
802
// Headers for all request
803
803
client.SetHeader (" Accept" , " application/json" )
@@ -861,7 +861,7 @@ client := resty.New()
861
861
862
862
// Set the previous transport that we created, set the scheme of the communication to the
863
863
// socket and set the unixSocket as the HostURL.
864
- client.SetTransport (&transport).SetScheme (" http" ).SetHostURL (unixSocket)
864
+ client.SetTransport (&transport).SetScheme (" http" ).SetBaseURL (unixSocket)
865
865
866
866
// No need to write the host's URL on the request, just the path.
867
867
client.R ().Get (" http://localhost/index.html" )
You can’t perform that action at this time.
0 commit comments