Initializes a new instance of the WebClient class with specified HTTP request creator. This enables sharing keep-alive connections between instances of WebClient and WebRequest. However please note that Settings, LogWriter and ValidatingCertificate properties are shared between all instances as well. This means that changing such property affects behavior of all instances as well.

Namespace:  Rebex.Net
Assembly:  Rebex.Http (in Rebex.Http.dll)

Syntax

Visual Basic
Protected Sub New ( _
	creator As HttpRequestCreator _
)
C#
protected WebClient(
	HttpRequestCreator creator
)

Parameters

creator
Type: Rebex.Net..::..HttpRequestCreator

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also