www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - [vibe.d] Proper use of preWriteCallback

reply "Chris" <wendlec tcd.ie> writes:
Maybe a trivial question: How do I use "preWriteCallback" 
properly? It doesn't work properly for me yet (I might not see 
the forest for the trees at the moment). I am trying to set a 
field in the HTTPServerResponse.

http://vibed.org/api/vibe.http.fileserver/HTTPFileServerSettings.preWriteCallback
Aug 22 2014
parent "Chris" <wendlec tcd.ie> writes:
On Friday, 22 August 2014 at 13:58:02 UTC, Chris wrote:
 Maybe a trivial question: How do I use "preWriteCallback" 
 properly? It doesn't work properly for me yet (I might not see 
 the forest for the trees at the moment). I am trying to set a 
 field in the HTTPServerResponse.

 http://vibed.org/api/vibe.http.fileserver/HTTPFileServerSettings.preWriteCallback
Just got it working, sorry! I overlooked the toDelegate(&myDelegate) function. Mea maxima culpa!
Aug 22 2014