public static void Html(this RestRequestResponse response, Action <HtmlFormatter> formattingAction) { response.AddResponseActionForFormat("html", (context, engineContext) => RenderHtmlResponse(formattingAction)); }
public static void Json(this RestRequestResponse response, Action <JsonFormatter> formattingAction) { response.AddResponseActionForFormat("json", (context, engineContext) => RenderJsonResponse(formattingAction, context, engineContext)); }