Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Option to overide form decoder setting - Rename function #1555

Merged

Conversation

rockcreation7
Copy link
Contributor

Please provide enough information so that others can review your pull request:

Rename function - SetBodyParserDecoder to SetParserDecoder

Explain the details for making this change. What existing problem does the pull request solve?

@ReneWerner87 : rename it a bit, because the decoder is used by the query parser and body parser

#1100

Commit formatting

Use emojis on commit messages so it provides an easy way of identifying the purpose or intention of a commit. Check out the emoji cheatsheet here: https://gitmoji.carloscuesta.me/

🔥 Feature : SetBodyParserDecoder map all option to form decoder, use with BodyParserConfig, BodyParserType

🚨 Test : Test_Ctx_BodyParser_WithSetBodyParserDecoder
BodyParserType > ParserType
bodyParserConfig > parserConfig
BodyParserConfig > ParserConfig
@ReneWerner87
Copy link
Member

Thx, there are merged conflicts, could you please update the branch

And maybe provide also a new test case where we use the new possibilities for the query parser.

@ReneWerner87
Copy link
Member

https://github.com/gofiber/docs

Can you also add a block for the new possibilities in the documentation repository?

@rockcreation7
Copy link
Contributor Author

I will first add the docs, and follow up a new test case for the query parser.

@rockcreation7
Copy link
Contributor Author

gofiber/docs#203

Added block of doc on use with BodyPauser, may update again after QueryPauser test case

@rockcreation7
Copy link
Contributor Author

I think it can be integrate with app config, what you guys think? or just let it as stand alone function.

@ReneWerner87
Copy link
Member

Standalone is okay for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants