WebRequestCreator Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides objects for specifying that the Windows Phone client handles HTTP requests and responses. Since the Windows Phone client provides HTTP handling by default, you typically never need to use this class.
Assembly: System.Windows (in System.Windows.dll)
The WebRequestCreator type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | ClientHttp | Gets an object that specifies client HTTP handling for Web requests and responses. |
You pass the properties of this class to the RegisterPrefix method of WebRequest .
You can specify the scope for HTTP handling. For example, you can specify HTTP handling for all messages, for a particular domain, or for a single request object.
After you specify HTTP handling for a particular scheme or domain, you cannot change how HTTP messages to the domain or scheme are handled. If you try to call RegisterPrefix a second time for the same domain or prefix, the method will return false to indicate the register operation was not successful.

