This commit is contained in:
purplefox
2013-03-13 11:18:01 +00:00
parent f32e170f55
commit f2d7eb5650

View File

@@ -83,7 +83,9 @@ public abstract class HttpServerResponse implements WriteStream {
/**
* Put an HTTP header - fluent API
* @param name The header name
* @param value The header value
* @param value The header value. As well as the usual types, value also accepts Iterable<?> objects
* you can use this to when you have multiple headers with the same name that you wish to set
* e.g. multiple Set-Cookie headers
* @return A reference to this, so multiple method calls can be chained.
*/
public abstract HttpServerResponse putHeader(String name, Object value);