Example #1
0
 public static void SendResponse(IHttpContext context, HttpStatusCodeHandler handler)
 {
     SendResponse(context, handler.Handle(), handler.Code);
 }
Example #2
0
 public static void SendResponse(IHttpContext context, HttpStatusCodeHandler handler, object dynamicObjectHeaders)
 {
     SendResponse(context, handler.Handle(), handler.Code, null, dynamicObjectHeaders.ToDictionary(pi => $"X-{pi.Name.PascalSplit("-")}", (o) => (string)o));
 }
Example #3
0
 public static void SendResponse(IHttpContext context, int code, object dynamicObjectHeaders = null)
 {
     SendResponse(context, HttpStatusCodeHandler.Get(code), dynamicObjectHeaders ?? new object());
 }