cooky 1.0.0 copy "cooky: ^1.0.0" to clipboard
cooky: ^1.0.0 copied to clipboard

outdated

An HTTP Cookies implementation for the client.

example/example.dart

import 'package:cooky/cooky.dart' as cooky;

main() async {
  // Create a session cookie:
  cooky.set('key', 'value');

  // Create a cookie that expires in a week:
  cooky.set('key', 'value', maxAge: new Duration(days: 7));

  // Create a cookie that is valid for a certain path and domain:
  cooky.set('key', 'value', path: '/test', domain: 'test.com');

  // Read a cookie:
  var value = cooky.get('key');
  print(value);

  // Delete a cookie:
  cooky.remove('key');
}
10
likes
0
points
106k
downloads

Publisher

unverified uploader

Weekly Downloads

An HTTP Cookies implementation for the client.

Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

intl

More

Packages that depend on cooky