Skip to content

Commit

Permalink
Add global wrapper for Request.SetOrderedFormData
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Oct 10, 2024
1 parent cfff250 commit 5f9bf49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions request_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ func SetFormData(data map[string]string) *Request {
return defaultClient.R().SetFormData(data)
}

// SetOrderedFormData is a global wrapper methods which delegated
// to the default client, create a request and SetOrderedFormData for request.
func SetOrderedFormData(kvs ...string) *Request {
return defaultClient.R().SetOrderedFormData(kvs...)
}

// SetFormDataAnyType is a global wrapper methods which delegated
// to the default client, create a request and SetFormDataAnyType for request.
func SetFormDataAnyType(data map[string]interface{}) *Request {
Expand Down

0 comments on commit 5f9bf49

Please sign in to comment.