예제 #1
0
 public static void SendResponse(IHttpContext context, HttpStatusCodeHandler handler)
 {
     SendResponse(context, handler.Handle(), handler.Code);
 }
예제 #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));
 }
예제 #3
0
 public static void SendResponse(IHttpContext context, int code, object dynamicObjectHeaders = null)
 {
     SendResponse(context, HttpStatusCodeHandler.Get(code), dynamicObjectHeaders ?? new object());
 }