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

outdated

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 = ClientCookie('Client', 'jaguar_resty', new DateTime.now());

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

  // Encoding many cookies
  var cookie2 = ClientCookie('Client', 'jaguar_resty', new DateTime.now());
  print(ClientCookie.toHeader([cookie1, cookie2]));
}
6
likes
0
pub points
61%
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