|
using System;
using System.Net;
namespace SharpVectors.Net
{
public class DataWebRequest : WebRequest, IWebRequestCreate
{
public static bool Register()
{
return WebRequest.RegisterPrefix("data", new DataWebRequest());
}
public new WebRequest Create(Uri uri)
{
return new DataWebRequest(uri);
}
//only for use from Register();
private DataWebRequest()
{
}
public DataWebRequest(Uri uri)
{
requestUri = uri;
}
private Uri requestUri;
public override Uri RequestUri
{
get
{
return requestUri;
}
}
public override WebResponse GetResponse()
{
return new DataWebResponse(RequestUri);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.