ServiceStack.HttpResponseExtensionsInternal.ShouldWriteGlobalHeaders C# (CSharp) Method

ShouldWriteGlobalHeaders() public static method

public static ShouldWriteGlobalHeaders ( IResponse httpRes ) : bool
httpRes IResponse
return bool
        public static bool ShouldWriteGlobalHeaders(IResponse httpRes)
        {
            if (HostContext.Config != null && !httpRes.Items.ContainsKey("__global_headers"))
            {
                httpRes.Items["__global_headers"] = true;
                return true;
            }
            return false;
        }