client_cookie 2.1.1 copy "client_cookie: ^2.1.1" to clipboard
client_cookie: ^2.1.1 copied to clipboard

outdatedDart 1 only

Emulates Cookie store for dart:io and Flutter as if its a Browser.

example/client_cookie_example.dart

// Copyright (c) 2017, teja. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:client_cookie/client_cookie.dart';

main() {
  // Initializing a cookie
  var cookie1 = new ClientCookie('Client', 'jaguar_resty', new DateTime.now());

  // Cookie to header string
  print(cookie1.header);

  // Encoding many cookies
  var cookie2 = new ClientCookie('Client', 'jaguar_resty', new DateTime.now());
  print(ClientCookie.toHeader([cookie1, cookie2]));
}
6
likes
0
pub points
52%
popularity

Publisher

unverified uploader

Emulates Cookie store for dart:io and Flutter as if its a Browser.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on client_cookie