[ 
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)

Reply via email to