@@ -72,14 +72,29 @@ public static IConfiguration WithStandardDownload(this IConfiguration configurat
7272 /// <param name="configuration">The configuration to use.</param>
7373 /// <returns>The new configuration.</returns>
7474 public static IConfiguration WithRequesters ( this IConfiguration configuration ) =>
75- configuration . WithRequesters ( new HttpClientHandler { UseCookies = false , AllowAutoRedirect = false } ) ;
75+ configuration . WithRequesters ( new HttpClientHandler ( ) ) ;
76+
77+ /// <summary>
78+ /// Adds the requesters from the AngleSharp.Io package.
79+ /// </summary>
80+ /// <param name="configuration">The configuration to use.</param>
81+ /// <param name="httpClientHandler">
82+ /// The HTTP client handler to use for sending requests.
83+ /// </param>
84+ /// <returns>The new configuration.</returns>
85+ public static IConfiguration WithRequesters ( this IConfiguration configuration , HttpClientHandler httpClientHandler )
86+ {
87+ httpClientHandler . UseCookies = false ;
88+ httpClientHandler . AllowAutoRedirect = false ;
89+ return configuration . WithRequesters ( ( HttpMessageHandler ) httpClientHandler ) ;
90+ }
7691
7792 /// <summary>
7893 /// Adds the requesters from the AngleSharp.Io package.
7994 /// </summary>
8095 /// <param name="configuration">The configuration to use.</param>
8196 /// <param name="httpMessageHandler">
82- /// The HTTP handler stack to use for sending requests.
97+ /// The HTTP message handler to use for sending requests.
8398 /// </param>
8499 /// <returns>The new configuration.</returns>
85100 public static IConfiguration WithRequesters ( this IConfiguration configuration , HttpMessageHandler httpMessageHandler )
0 commit comments