Mocca already supports request headers, however, it doesn't support response headers yet, which should be covered by this issue.
Potential API modification to support this feature
A new Mocca annotation could be introduced (named ResponseHeaders and applicable only to method paramteres) which users could use to annotate a parameter of type Map<String, List<String>> (the type must be necessarily that). Mocca would then identify this parameter (if present), and populate it with response headers as part of response message processing. The name of the parameter would be irrelevant.
Mocca already supports request headers, however, it doesn't support response headers yet, which should be covered by this issue.
Potential API modification to support this feature
A new Mocca annotation could be introduced (named
ResponseHeaders
and applicable only to method paramteres) which users could use to annotate a parameter of typeMap<String, List<String>>
(the type must be necessarily that). Mocca would then identify this parameter (if present), and populate it with response headers as part of response message processing. The name of the parameter would be irrelevant.Acceptance Criteria