public string StatusDescription;
public WebHeaderCollection Headers;
public Version Version;
+ public Version ProxyVersion;
public Stream stream;
- public string Challenge;
+ public string[] Challenge;
+ ReadState _readState;
public WebConnectionData ()
{
+ _readState = ReadState.None;
}
public WebConnectionData (HttpWebRequest request)
_request = value;
}
}
+
+ public ReadState ReadState {
+ get {
+ return _readState;
+ }
+ set {
+ lock (this) {
+ if ((_readState == ReadState.Aborted) && (value != ReadState.Aborted))
+ throw new WebException ("Aborted", WebExceptionStatus.RequestCanceled);
+ _readState = value;
+ }
+ }
+ }
}
}