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 @@ -905,7 +905,7 @@ func (r *Request) Patch(url string) (*Response, error) {
905
905
// for current `Request`.
906
906
//
907
907
// req := client.R()
908
- // req.Method = resty.GET
908
+ // req.Method = resty.MethodGet
909
909
// req.URL = "http://httpbin.org/get"
910
910
// resp, err := req.Send()
911
911
func (r * Request ) Send () (* Response , error ) {
@@ -915,7 +915,7 @@ func (r *Request) Send() (*Response, error) {
915
915
// Execute method performs the HTTP request with given HTTP method and URL
916
916
// for current `Request`.
917
917
//
918
- // resp, err := client.R().Execute(resty.GET , "http://httpbin.org/get")
918
+ // resp, err := client.R().Execute(resty.MethodGet , "http://httpbin.org/get")
919
919
func (r * Request ) Execute (method , url string ) (* Response , error ) {
920
920
var addrs []* net.SRV
921
921
var resp * Response
You can’t perform that action at this time.
0 commit comments