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