ITeye博客

Custom HTTP Response Headers with Restlet

leng_cn · 2011-08-30 15:41 · RESTLET · Web前端 · Markdown

Form responseHeaders = (Form) getResponse().getAttributes().get("org.restlet.http.headers"); if (responseHeaders == null) { responseHeaders = new Form(); getResponse().getAttributes().put("org.restlet.http.headers", responseHeaders); } responseHeaders.add("X-Some-Header", "the value");

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。