/// <summary> /// Gets a value indicating whether the given header should be included in a request. /// By default, headers should be included if they have one or more values. /// Additionally, an implementation of the <see cref="IHeader" /> interface is allowed to override /// the <see cref="IHeader.Required" /> property in a way that indicates that the header must be included in a request, /// even if it has no values. /// </summary> /// <param name="header">The header to evaluate.</param> /// <returns><c>true</c> if the header should be included in a request; otherwise, <c>false</c>.</returns> private static bool ShouldSendHeader(IHeader header) { return(header.Required || header.Any()); }