protocols 0.1.1 copy "protocols: ^0.1.1" to clipboard
protocols: ^0.1.1 copied to clipboard

Dart 1 only

Get the protocols of an input url.

protocols #

Build Status License Dart

Get the protocols of an input url.

Usage #

import 'package:protocols/protocols.dart' show protocols;

void main(){
  List<String> protos = protocols("https://www.google.com");
  print(protos);    // [https]
  
  List<String> protos = protocols("git+https@github.com:axetroy/protocols.git");
  print(protos);    // [git, https]
  
  List<String> protos = protocols("wss://example.com/api/v1");
  print(protos);    // [wss]
}

Test #

./TEST

Contribute #

git clone https://github.com/axetroy/protocols.git
cd ./url-parse
pub get
./TEST

LICENSE #

The MIT License

0
likes
15
pub points
0%
popularity

Publisher

unverified uploader

Get the protocols of an input url.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

More

Packages that depend on protocols