Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change resty.GET to resty.MethodGet in doc comment #803

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ func (r *Request) Patch(url string) (*Response, error) {
// for current `Request`.
//
// req := client.R()
// req.Method = resty.GET
// req.Method = resty.MethodGet
// req.URL = "http://httpbin.org/get"
// resp, err := req.Send()
func (r *Request) Send() (*Response, error) {
Expand All @@ -915,7 +915,7 @@ func (r *Request) Send() (*Response, error) {
// Execute method performs the HTTP request with given HTTP method and URL
// for current `Request`.
//
// resp, err := client.R().Execute(resty.GET, "http://httpbin.org/get")
// resp, err := client.R().Execute(resty.MethodGet, "http://httpbin.org/get")
func (r *Request) Execute(method, url string) (*Response, error) {
var addrs []*net.SRV
var resp *Response
Expand Down