mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 16:30:01 +08:00
feat: support query array in httpx.Parse (#4440)
This commit is contained in:
@@ -23,9 +23,16 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
formUnmarshaler = mapping.NewUnmarshaler(formKey, mapping.WithStringValues(), mapping.WithOpaqueKeys())
|
||||
pathUnmarshaler = mapping.NewUnmarshaler(pathKey, mapping.WithStringValues(), mapping.WithOpaqueKeys())
|
||||
validator atomic.Value
|
||||
formUnmarshaler = mapping.NewUnmarshaler(
|
||||
formKey,
|
||||
mapping.WithStringValues(),
|
||||
mapping.WithOpaqueKeys(),
|
||||
mapping.WithFromArray())
|
||||
pathUnmarshaler = mapping.NewUnmarshaler(
|
||||
pathKey,
|
||||
mapping.WithStringValues(),
|
||||
mapping.WithOpaqueKeys())
|
||||
validator atomic.Value
|
||||
)
|
||||
|
||||
// Validator defines the interface for validating the request.
|
||||
|
||||
Reference in New Issue
Block a user