ezhttp/utils.go

11 lines
187 B
Go
Raw Normal View History

2025-02-11 12:45:20 +01:00
package ezhttp
func chainMods(mods ...RequestModifier) RequestModifier {
return func(r *RequestBuilder) *RequestBuilder {
for _, mod := range mods {
r = mod(r)
}
return r
}
}