Scheme.hx 549 B

123456789101112131415161718
  1. package haxe.io;
  2. /**
  3. A scheme consists of a sequence of characters beginning with a letter and followed
  4. by any combination of letters, digits, plus (`+`, period (`.`), or hyphen (`-`).
  5. Although schemes are case-insensitive, the canonical form is lowercase
  6. and documents that specify schemes must do so with lowercase letters.
  7. It is followed by a colon (`:`).
  8. **/
  9. enum abstract Scheme(String) from String to String {
  10. var Http = 'http';
  11. var Https = 'https';
  12. var Ftp = 'ftp';
  13. var MailTo = 'mailto';
  14. var File = 'file';
  15. var Data = 'data';
  16. }