HTTPFileServerSettings.preWriteCallback

Called just before headers and data are sent. Allows headers to be customized, or other custom processing to be performed.

Note: Any changes you make to the response, physicalPath, or anything else during this function will NOT be verified by Vibe.d for correctness. Make sure any alterations you make are complete and correct according to HTTP spec.

class HTTPFileServerSettings
void delegate(scope HTTPServerRequest req, scope HTTPServerResponse res, ref string physicalPath) preWriteCallback;

Meta