O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

IWebRequestCreate

Synopsis

This interface is for objects that create protocol-specific instances of WebRequest. For example, the private class HttpRequestCreator is the underlying class that implements this interface. WebRequest uses that class under the hood to create instances of HttpWebRequest when an application connects to an http or https URI.

If you create your own protocol-specific implementation of this interface, you can register it with the WebRequest.RegisterPrefix() static method.

public interface IWebRequestCreate {
// Public Instance Methods
   public method WebRequest Create(Uri uri);  
}

Passed To

WebRequest.RegisterPrefix()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required