From: David ‘Bombe’ Roden Date: Sun, 10 Apr 2011 18:14:34 +0000 (+0200) Subject: Return response object after setting a header. X-Git-Tag: beta-freefall-0.6.2-1~48 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2cb4e09775eb0e87052ca8d36f931a1322f0f3e7;p=Sone.git Return response object after setting a header. --- diff --git a/src/main/java/net/pterodactylus/sone/web/page/Page.java b/src/main/java/net/pterodactylus/sone/web/page/Page.java index dd54f41..d26da79 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/Page.java +++ b/src/main/java/net/pterodactylus/sone/web/page/Page.java @@ -316,9 +316,11 @@ public interface Page { * The name of the header * @param value * The value of the header + * @return This response */ - public void setHeader(String name, String value) { + public Response setHeader(String name, String value) { headers.put(name, value); + return this; } /**