2

add Form support (IntroResponse + FromRequest) · Issue #68 · plabayo/rama · GitH...

 4 weeks ago
source link: https://github.com/plabayo/rama/issues/68
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Comments

Member

Akin to the Json support it can be nice to develop and implement Form.
It would be used to:

  • be able to decode Form from the request (which is either in the payload, or it is in the query, depending on the Http Method and Content-Type header)
  • be able to return a Form response payload.

You can find inspiration here: https://docs.rs/axum/latest/src/axum/form.rs.html#73. Also look at how implement Json vs how Axum does it, to see on the differences you need to pay attention to.

Deliverables:

Low prio item, not on any roadmap for now. But a great easy one for someone of the community to pick up if they look for something to ge started.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK