You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "liubao (Jira)" <ji...@apache.org> on 2020/05/15 00:44:00 UTC
[jira] [Resolved] (SCB-1896) improve demo test case for testing
http headers
[ https://issues.apache.org/jira/browse/SCB-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
liubao resolved SCB-1896.
-------------------------
Resolution: Fixed
> improve demo test case for testing http headers
> -----------------------------------------------
>
> Key: SCB-1896
> URL: https://issues.apache.org/jira/browse/SCB-1896
> Project: Apache ServiceComb
> Issue Type: Improvement
> Components: Java-Chassis
> Reporter: liubao
> Assignee: liubao
> Priority: Major
> Fix For: java-chassis-2.1.0
>
>
> response type is not relate to actual one
> {code:java}
> @ApiResponse(code = 200, response = User.class, message = "")
> @ResponseHeaders({@ResponseHeader(name = "h1", response = String.class),
> @ResponseHeader(name = "h2", response = String.class)})
> @RequestMapping(path = "/cseResponse", method = RequestMethod.GET)
> public Response cseResponse(InvocationContext c1) {
> Response response = Response.createSuccess(Status.ACCEPTED, new User());{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)