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

Endpoint API Output headers #3054

Closed anqit closed 1 month ago

anqit commented 1 month ago

Is your feature request related to a problem? Please describe. Not sure if this is supported already or not, but the Endpoint API docs mention how to require headers on incoming requests, but I would also like to add them to outgoing responses.

Describe the solution you'd like if none currently exists, function to add response headers when using the Endpoint API. if exists, updated docs would be great

Describe alternatives you've considered Standard imperative route building

Additional context Add any other context or screenshots about the feature request here.

jdegoes commented 1 month ago

/bounty $150 for any missing methods, documentation, and tests (btw I know I wrote code to add response headers so it may just not be exposed).

algora-pbc[bot] commented 1 month ago

💎 $150 bounty • ZIO

Steps to solve:

  1. Start working: Comment /attempt #3054 with your implementation plan
  2. Submit work: Create a pull request including /claim #3054 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
🟢 @987Nabil #3068
algora-pbc[bot] commented 1 month ago

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

algora-pbc[bot] commented 1 month ago

🎉🎈 @987Nabil has been awarded $150! 🎈🎊