vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function isCommonInternetSchema

Determines whether an URL schema is double-slash based.

bool isCommonInternetSchema (
  string schema
) nothrow @nogc @safe;

Double slash based schemas are of the form schema://[host]/<path> and are parsed differently compared to generic schemas, which are simply parsed as schema:<path>.

Built-in recognized double-slash schemas: ftp, http, https, http+unix, https+unix, spdy, sftp, ws, wss, file, redis, tcp, rtsp, rtsps

See also

registerCommonInternetSchema, RFC 1738 Section 3.1

Authors

Sönke Ludwig

Copyright

© 2012-2017 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.