Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Uri] Add UriScheme Properties: SSH, FTPS, SFTP, WS, WSS #35180

Copy link
Copy link

Description

@ArthurHNL
Issue body actions

Currently, the System.Uri class has static fields for the Scheme part of a URI of common protocols:

  • UriSchemeFile
  • UriSchemeFtp
  • UriSchemeGopher
  • UriSchemeHttp
  • UriSchemeHttps
  • UriSchemeMailto
  • UriSchemeNetPipe
  • UriSchemeNetTcp
  • UriSchemeNews
  • UriSchemeNntp

I, however, think that this list is out of date and that the following URI Schemes would be a good addition for the .NET 5 era:

UriSchemeTelnet = "telnet" might be considered for interaction with legacy systems.

Proposal

Extend the list of well-known Uri schemes with more commonly used schemes.

namespace System
{
    public class Uri
    {
        // Existing
        public static readonly string UriSchemeFile;
        public static readonly string UriSchemeFtp;
        public static readonly string UriSchemeGopher;
        public static readonly string UriSchemeHttp;
        public static readonly string UriSchemeHttps;
        public static readonly string UriSchemeMailto;
        public static readonly string UriSchemeNews;
        public static readonly string UriSchemeNntp;
        public static readonly string UriSchemeNetTcp;
        public static readonly string UriSchemeNetPipe;

        // Proposed
        public static readonly string UriSchemeWs;
        public static readonly string UriSchemeWss;
        public static readonly string UriSchemeSsh;
        public static readonly string UriSchemeTelnet;
        public static readonly string UriSchemeSftp; // SSH File Transfer Protocol
        public static readonly string UriSchemeFtps; // FTP over SSL
    }
}
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.