ServiceStack.HttpResponseExtensionsInternal.ApplyGlobalResponseHeaders C# (CSharp) 메소드

ApplyGlobalResponseHeaders() 공개 정적인 메소드

public static ApplyGlobalResponseHeaders ( this httpRes ) : void
httpRes this
리턴 void
        public static void ApplyGlobalResponseHeaders(this HttpListenerResponse httpRes)
        {
            if (HostContext.Config == null) return;
            foreach (var globalResponseHeader in HostContext.Config.GlobalResponseHeaders)
            {
                httpRes.AddHeader(globalResponseHeader.Key, globalResponseHeader.Value);
            }
        }