- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Add the support of form data (without binary data), and set the value of the Content-Type field in the request header to application/x-www-form-urlencoded.
- For 
url.Valuesobject, just call theEncodedmethod to encode it. - For struct and map, check the type of all fields, convert the values to the strings, and encode them like 
url.Valuesobject. 
Example code
data := SomeType{
  F1: "Value 1",
  F2: 2,
  // and other data...
}
Request(dest, RequestConfig{
  Body: data,
  ContentType: "form"
})
// f1=Value 1&f2=2 // ...Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request