// Copyright 2014, Kevin Ko <kevin@faveset.com>

package com.faveset.khttp;

class HttpResponseWriter {
}

@@ -74,33 +74,755 @@
 p;%0A%0A
-class HttpResponseWriter %7B
+import java.nio.ByteBuffer;%0A%0Aimport java.util.Map;%0A%0Apublic interface HttpResponseWriter %7B%0A    HeadersBuilder getHeadersBuilder();%0A%0A    /**%0A     * Add buf to the response body.%0A     *%0A     * This will implicitly call writeHeader with status OK if not already%0A     * performed by the caller.%0A     */%0A    void write(ByteBuffer buf);%0A%0A    /**%0A     * Write s to the response body.%0A     *%0A     * This will implicitly call writeHeader with status OK if not already%0A     * performed by the caller.%0A     */%0A    void write(String s);%0A%0A    /**%0A     * Prepares and writes an HTTP response header with given status code.%0A     * If not called, the other write methods will call this implicitly with%0A     * status OK.%0A     */%0A    void writeHeader(int statusCode);
 %0A%7D%0A

Add HttpResponseWriter interface.