Commits

Fabrice Gabolde committed b656a2a

Export HTTP traits only on demand; provide a tag.

  • Participants
  • Parent commits 1e17fa4

Comments (0)

Files changed (1)

File lib/Floop/Confectionery.pm

 use mop;
 
 use base 'Exporter';
-our @EXPORT = qw/HTTP GET POST PUT DELETE PATCH HEAD OPTIONS/;
-our @EXPORT_OK = qw/sugarcoat/;
+our @EXPORT_OK = qw/HTTP GET POST PUT DELETE PATCH HEAD OPTIONS sugarcoat/;
+our %EXPORT_TAGS = (
+    sugar => [ qw/HTTP GET POST PUT DELETE PATCH HEAD OPTIONS/ ]);
 
 use Scalar::Util qw/blessed/;
 use Floop::Route;