46 lines
1.7 KiB
Markdown
46 lines
1.7 KiB
Markdown
|
# System.Net
|
||
|
|
||
|
``` diff
|
||
|
namespace System.Net {
|
||
|
- public class CookieCollection : ICollection, IEnumerable {
|
||
|
+ public class CookieCollection : ICollection, ICollection<Cookie>, IEnumerable, IEnumerable<Cookie>, IReadOnlyCollection<Cookie> {
|
||
|
+ public void Clear();
|
||
|
+ public bool Contains(Cookie cookie);
|
||
|
+ public bool Remove(Cookie cookie);
|
||
|
+ IEnumerator<Cookie> System.Collections.Generic.IEnumerable<System.Net.Cookie>.GetEnumerator();
|
||
|
}
|
||
|
public enum DecompressionMethods {
|
||
|
+ All = -1,
|
||
|
+ Brotli = 4,
|
||
|
}
|
||
|
public class FtpWebResponse : WebResponse, IDisposable {
|
||
|
- public override string ContentType { get; }
|
||
|
|
||
|
}
|
||
|
public static class HttpVersion {
|
||
|
+ public static readonly Version Version30;
|
||
|
}
|
||
|
public class IPEndPoint : EndPoint {
|
||
|
+ public static IPEndPoint Parse(ReadOnlySpan<char> s);
|
||
|
+ public static IPEndPoint Parse(string s);
|
||
|
+ public static bool TryParse(ReadOnlySpan<char> s, out IPEndPoint result);
|
||
|
+ public static bool TryParse(string s, out IPEndPoint result);
|
||
|
}
|
||
|
public enum SecurityProtocolType {
|
||
|
+ Tls13 = 12288,
|
||
|
}
|
||
|
public class WebClient : Component {
|
||
|
+ public bool AllowReadStreamBuffering { get; set; }
|
||
|
+ public bool AllowWriteStreamBuffering { get; set; }
|
||
|
+ public event WriteStreamClosedEventHandler WriteStreamClosed;
|
||
|
+ protected virtual void OnWriteStreamClosed(WriteStreamClosedEventArgs e);
|
||
|
}
|
||
|
+ public class WriteStreamClosedEventArgs : EventArgs {
|
||
|
+ public WriteStreamClosedEventArgs();
|
||
|
+ public Exception Error { get; }
|
||
|
+ }
|
||
|
+ public delegate void WriteStreamClosedEventHandler(object sender, WriteStreamClosedEventArgs e);
|
||
|
}
|
||
|
```
|
||
|
|