请求配置验证, 默认值初始化 + full_url + method验证

This commit is contained in:
2024-05-31 16:39:58 +08:00
parent c977bc0392
commit 2be9c90b79
6 changed files with 293 additions and 12 deletions

3
go.mod
View File

@ -2,6 +2,8 @@ module git.zhangdeman.cn/gateway/httpclient
go 1.22.3
require github.com/go-resty/resty/v2 v2.13.1
require (
git.zhangdeman.cn/gateway/validator v0.0.0-20240517061043-10dc8547cc14 // indirect
git.zhangdeman.cn/zhangdeman/consts v0.0.0-20240517060653-203cc568fbec // indirect
@ -13,7 +15,6 @@ require (
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394 // indirect
github.com/go-ini/ini v1.67.0 // indirect
github.com/go-resty/resty/v2 v2.13.1 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mozillazg/go-pinyin v0.20.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect