import net.pterodactylus.util.template.Template;
import net.pterodactylus.util.template.TemplateContext;
import net.pterodactylus.util.template.TemplateContextFactory;
+import net.pterodactylus.util.web.Header;
import net.pterodactylus.util.web.Method;
import net.pterodactylus.util.web.Page;
import net.pterodactylus.util.web.RedirectResponse;
postProcess(request, templateContext);
+ for (Header header : getAdditionalHeaders(request)) {
+ for (String value : header) {
+ response.addHeader(header.getName(), value);
+ }
+ }
+
return response.setStatusCode(200).setStatusText("OK").setContentType("text/html").write(pageNode.outer.generate());
}
return null;
}
+ protected Iterable<Header> getAdditionalHeaders(FreenetRequest request) {
+ return Collections.emptyList();
+ }
+
/**
* Returns additional <link> nodes for the HTML’s <head> node.
*