Skip to content

🚀 v3 Request: Detailed Binding for Query, Form, Headers, Params... #1821

@efectn

Description

@efectn

Fiber already has QueryParser, BodyParser and ReqHeadersParser but they're really limited and not extendable. Also i think we don't need gorilla/schema.

I think creating binding sub-directory will solve this problem. https://github.com/gin-gonic/gin/tree/master/binding. It'll provide more more detailed binding specs. (without default validator, maybe custom validator function can be added, #1766).

Also adding all methods to ctx would be make ctx really mess and big. So we should add these binding methods by sub-method.

Bind().URI()
Bind().Form()
Bind().Params()
Bind().Headers()

Look These:

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions