Skip to content

Commit

Permalink
Add additional URI schemes (WIP) (#43375)
Browse files Browse the repository at this point in the history
  • Loading branch information
poke authored Oct 17, 2020
1 parent c125743 commit c8759a9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/libraries/System.Private.Uri/src/System/Uri.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ public partial class Uri : ISerializable
{
public static readonly string UriSchemeFile = UriParser.FileUri.SchemeName;
public static readonly string UriSchemeFtp = UriParser.FtpUri.SchemeName;
public static readonly string UriSchemeSftp = "sftp";
public static readonly string UriSchemeFtps = "ftps";
public static readonly string UriSchemeGopher = UriParser.GopherUri.SchemeName;
public static readonly string UriSchemeHttp = UriParser.HttpUri.SchemeName;
public static readonly string UriSchemeHttps = UriParser.HttpsUri.SchemeName;
internal static readonly string UriSchemeWs = UriParser.WsUri.SchemeName;
internal static readonly string UriSchemeWss = UriParser.WssUri.SchemeName;
public static readonly string UriSchemeWs = UriParser.WsUri.SchemeName;
public static readonly string UriSchemeWss = UriParser.WssUri.SchemeName;
public static readonly string UriSchemeMailto = UriParser.MailToUri.SchemeName;
public static readonly string UriSchemeNews = UriParser.NewsUri.SchemeName;
public static readonly string UriSchemeNntp = UriParser.NntpUri.SchemeName;
public static readonly string UriSchemeSsh = "ssh";
public static readonly string UriSchemeTelnet = UriParser.TelnetUri.SchemeName;
public static readonly string UriSchemeNetTcp = UriParser.NetTcpUri.SchemeName;
public static readonly string UriSchemeNetPipe = UriParser.NetPipeUri.SchemeName;
public static readonly string SchemeDelimiter = "://";
Expand Down
6 changes: 6 additions & 0 deletions src/libraries/System.Runtime/ref/System.Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4629,6 +4629,7 @@ public partial class Uri : System.Runtime.Serialization.ISerializable
public static readonly string SchemeDelimiter;
public static readonly string UriSchemeFile;
public static readonly string UriSchemeFtp;
public static readonly string UriSchemeFtps;
public static readonly string UriSchemeGopher;
public static readonly string UriSchemeHttp;
public static readonly string UriSchemeHttps;
Expand All @@ -4637,6 +4638,11 @@ public partial class Uri : System.Runtime.Serialization.ISerializable
public static readonly string UriSchemeNetTcp;
public static readonly string UriSchemeNews;
public static readonly string UriSchemeNntp;
public static readonly string UriSchemeSftp;
public static readonly string UriSchemeSsh;
public static readonly string UriSchemeTelnet;
public static readonly string UriSchemeWs;
public static readonly string UriSchemeWss;
protected Uri(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) { }
public Uri(string uriString) { }
[System.ObsoleteAttribute("The constructor has been deprecated. Please use new Uri(string). The dontEscape parameter is deprecated and is always false. https://go.microsoft.com/fwlink/?linkid=14202")]
Expand Down

0 comments on commit c8759a9

Please sign in to comment.