@@ -0,0 +1,425 @@
+package org.example.action;%0A%0Aimport com.bastengao.struts2.freeroute.Results;%0Aimport com.bastengao.struts2.freeroute.annotation.Route;%0A%0A/**%0A * @author bastengao%0A * @date 13-1-12 16:18%0A */%0Apublic class HttpHeaderController %7B%0A    @Route(%22/http-header%22)%0A    public String show() %7B%0A        return Results.httpHeader()%0A                .status(%22204%22)%0A                .headers(%22Xname%22, %22bastengao%22)%0A                .done();%0A    %7D%0A%7D%0A%0A

添加 http header 返回类型示例