zio / zio-http

A next-generation Scala framework for building scalable, correct, and efficient HTTP clients and servers
https://zio.dev/zio-http
Apache License 2.0
787 stars 396 forks source link

Simplify `EncoderDecoder` #2958

Closed 987Nabil closed 1 month ago

987Nabil commented 2 months ago

As shown in #2951 with HttpContentCodec we can generalize cases in EncoderDecoder that had special handling before. We should investigate if more such simplifications can be made, since EncoderDecoder is an important part of the Endpoint API. A simple version would increase maintainability and readability. Also it would be nice, if we can reduce most use cases to some core functionality. For example, would it be possible to use HttpContentCodec for form data?

This is an issue that needs research and careful adjustments.

jdegoes commented 2 months ago

/bounty $250

algora-pbc[bot] commented 2 months ago

💎 $250 bounty • ZIO

Steps to solve:

  1. Start working: Comment /attempt #2958 with your implementation plan
  2. Submit work: Create a pull request including /claim #2958 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to zio/zio-http!

Add a bounty • Share on socials

Attempt Started (GMT+0) Solution
🟢 @pablf #2998
jdegoes commented 2 months ago

Note this will shortly be constrained by backward compatibility.

algora-pbc[bot] commented 2 months ago

💡 @pablf submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] commented 1 month ago

🎉🎈 @pablf has been awarded $250! 🎈🎊