HttpResponse.addHeaders

Called by render() when a subclass may use append to add its response header lines.

class HttpResponse
protected
void
addHeaders

Parameters

append AppendHeaderLines

header line appender

Examples

class MyHttpResponse : HttpResponse
{
    protected override addHeaders ( AppendHeaderLines append )
    {
        // append "Hello: World!\r\n"

        append("Hello", "World!");
    }
}

If the header field value of a header line needs to be assembled incrementally, the AppendHeaderLines.IncrementalValue may be used; see the documentation of that class below for further information.

Meta