public object Any(ContentRoute request) { if (Request.ResponseContentType == MimeTypes.Html) { return(AnyHtml(request)); } return(request); }
public object GetHtml(ContentRoute request) { return($@" <html> <body> <h1>GetHtml {request.Id}</h1> </body> </html>"); }
public object Get(ContentRoute request) { if (Request.ResponseContentType == MimeTypes.Html) { return(GetHtml(request)); } request.Id++; return(request); }
public object GetJson(ContentRoute request) { request.Id++; return(request); }
public object Any(ContentRoute request) { return(request); }