jakartaee / jakartaee/rest

ResponseBuilder should have a method accepting a map of headers

Open
#504 3 comments 0 reactions 0 assignees View on GitHub
Component: model api
Dominant language
Java
Stars
400
Forks
143
PR merge metrics
No merged PRs in 30d

Description

In can be tedious to manually set the cached headers on an instance of ResponseBuilder.
Response.fromResponse implementation has the code that might be reused

Contributor guide

Open the contributing guide

Research direction

Start with the ResponseBuilder API and the Response.fromResponse implementation referenced in the issue. Compare how cached headers are handled there and determine the expected map-based entry point; done means callers can provide headers without setting them individually and the existing behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.