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

Add the ability for parameters to come from urlencoded forms. #245

Merged
merged 3 commits into from
Mar 27, 2022

Conversation

J00LZ
Copy link
Contributor

@J00LZ J00LZ commented Mar 23, 2022

It only works for a urlencoded body. This works the same as poem's Form<T>

This introduces an extra dependency on serde_urlencoded as well, since poem does not reexport it.

I am not 100% sure that this should be in the payload module, since you can't really give a form response.

This is related to #241, even though it does not solve that issue it is enough for me to no longer require that one solved.

@J00LZ J00LZ changed the title Add the ability for parameters to come from urlencoded forms. WIP: Add the ability for parameters to come from urlencoded forms. Mar 23, 2022
@J00LZ J00LZ changed the title WIP: Add the ability for parameters to come from urlencoded forms. Add the ability for parameters to come from urlencoded forms. Mar 23, 2022
@sunli829
Copy link
Collaborator

sunli829 commented Mar 27, 2022

This Form is very similar to Json, but encoded with urlencoded.
Still useful in some cases, thank you! 🙂

@sunli829 sunli829 merged commit fd341bc into poem-web:master Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants