public virtual async Task OnRequestExecutionAsync(RequestExecutingContext context, RequestExecutionDelegate next)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (next == null)
            {
                throw new ArgumentNullException(nameof(next));
            }

            OnRequestExecuting(context);

            if (context.Result == null)
            {
                OnRequestExecuted(await next());
            }
        }
 public override void OnRequestExecuting(RequestExecutingContext context)
 {
     context.GoContext.Request.AddHeader(Name, Value);
 }
 public virtual void OnRequestExecuting(RequestExecutingContext context)
 {
 }