增加请求方法的枚举值定义

This commit is contained in:
白茶清欢 2022-05-01 20:09:36 +08:00
parent 83dbdb7ecb
commit 80e180795b

View File

@ -11,4 +11,11 @@
// Date: 2022/05/01 19:56:48 // Date: 2022/05/01 19:56:48
package curl package curl
const () const (
// ContentTypeFormData form-data 请求
ContentTypeFormData = "form-data"
// ContentTypeFormURLEncoded x-www-form-urlencoded 请求
ContentTypeFormURLEncoded = "application/x-www-form-urlencoded"
// ContentTypeJSON json的请求方式
ContentTypeJSON = "application/json"
)