public static ShouldWriteGlobalHeaders ( IResponse httpRes ) : bool | ||
httpRes | IResponse | |
리턴 | 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;
}