is it possible to get the NancyResponse body before returning the View?
I mean this:
Get["/"] = x => {
var x = _repo.X();
var view = View["my_view", x];
**//here I want to send the response body by mail**
return view;
};
You could write the contents to a memorystream in the route or you could add a delegate to
the After Pipeline: