How to get a response from the Nancy Negotiator?
问题 I have a NancyContext and I need to get a Response with a body based on the correct content negotiator for the request. I think I can use Nancy's Negotiator class to add a model, set the status, and other things. But then, I need to return a subtype of Response . So, what can I use to build the response using the Negotiator ? Here's my method: public Response ConvertToHttpResponse(Exception exception, NancyContext context) { var negotiator = new Negotiator(context) .WithStatusCode