Skip to content

Commit bf77da8

Browse files
authored
Update README.md (#772)
1 parent 16fc559 commit bf77da8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ client.SetTimeout(1 * time.Minute)
797797
// You can override all below settings and options at request level if you want to
798798
//--------------------------------------------------------------------------------
799799
// 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")
801801

802802
// Headers for all request
803803
client.SetHeader("Accept", "application/json")
@@ -861,7 +861,7 @@ client := resty.New()
861861

862862
// Set the previous transport that we created, set the scheme of the communication to the
863863
// socket and set the unixSocket as the HostURL.
864-
client.SetTransport(&transport).SetScheme("http").SetHostURL(unixSocket)
864+
client.SetTransport(&transport).SetScheme("http").SetBaseURL(unixSocket)
865865

866866
// No need to write the host's URL on the request, just the path.
867867
client.R().Get("http://localhost/index.html")

0 commit comments

Comments
 (0)