From 2cb4e09775eb0e87052ca8d36f931a1322f0f3e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 10 Apr 2011 20:14:34 +0200 Subject: [PATCH] Return response object after setting a header. --- src/main/java/net/pterodactylus/sone/web/page/Page.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } /** -- 2.7.4