/// <summary>
        /// Adds a <c>Referrer-Policy</c> header to the response.
        /// </summary>
        /// <param name="builder"></param>
        /// <param name="policy">The <c>Refer-Policy</c> header value.</param>
        /// <returns></returns>
        public static IApplicationBuilder UseReferrerPolicyHeader(this IApplicationBuilder builder, ReferrerPolicy policy)
        {
            var options = new ReferrerPolicyHeaderOptions
            {
                Policy = policy
            };

            return(builder.UseMiddleware <ReferrerPolicyHeaderMiddleware>(Options.Create(options)));
        }
 /// <summary>
 /// Adds a <c>Referrer-Policy</c> header to the response.
 /// </summary>
 /// <param name="builder"></param>
 /// <param name="options">The options configuring the <c>Referrer-Policy</c> header value.</param>
 /// <returns></returns>
 public static IApplicationBuilder UseReferrerPolicyHeader(this IApplicationBuilder builder, ReferrerPolicyHeaderOptions options)
 {
     return(builder.UseMiddleware <ReferrerPolicyHeaderMiddleware>(Options.Create(options)));
 }