9.5 Adding New Protocol Handlers
Adding handlers to support
new protocols is trivial;
simply implement a new set of derived types based on
WebRequest and WebResponse,
implement the IWebRequestCreate interface on your
WebRequest-derived type, and register it as a new
protocol handler with the WebRequest.RegisterPrefix(
) at runtime. Once this is done, any code that uses the
request/response architecture can access networked resources using
the new URI format (and underlying protocol).
|