{"action":"created","issue":{"url":"https://api.github.com/repos/bsittler/async-cookies-api/issues/9","repository_url":"https://api.github.com/repos/bsittler/async-cookies-api","labels_url":"https://api.github.com/repos/bsittler/async-cookies-api/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/bsittler/async-cookies-api/issues/9/comments","events_url":"https://api.github.com/repos/bsittler/async-cookies-api/issues/9/events","html_url":"https://github.com/bsittler/async-cookies-api/pull/9","id":138613477,"number":9,"title":"Switch from get/set to read/write; add readAllAsString/writeAsString","user":{"login":"bsittler","id":63303,"avatar_url":"https://avatars.githubusercontent.com/u/63303?v=3","gravatar_id":"","url":"https://api.github.com/users/bsittler","html_url":"https://github.com/bsittler","followers_url":"https://api.github.com/users/bsittler/followers","following_url":"https://api.github.com/users/bsittler/following{/other_user}","gists_url":"https://api.github.com/users/bsittler/gists{/gist_id}","starred_url":"https://api.github.com/users/bsittler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsittler/subscriptions","organizations_url":"https://api.github.com/users/bsittler/orgs","repos_url":"https://api.github.com/users/bsittler/repos","events_url":"https://api.github.com/users/bsittler/events{/privacy}","received_events_url":"https://api.github.com/users/bsittler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2016-03-04T23:12:57Z","updated_at":"2016-03-07T23:40:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bsittler/async-cookies-api/pulls/9","html_url":"https://github.com/bsittler/async-cookies-api/pull/9","diff_url":"https://github.com/bsittler/async-cookies-api/pull/9.diff","patch_url":"https://github.com/bsittler/async-cookies-api/pull/9.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/bsittler/async-cookies-api/issues/comments/193508937","html_url":"https://github.com/bsittler/async-cookies-api/pull/9#issuecomment-193508937","issue_url":"https://api.github.com/repos/bsittler/async-cookies-api/issues/9","id":193508937,"user":{"login":"bsittler","id":63303,"avatar_url":"https://avatars.githubusercontent.com/u/63303?v=3","gravatar_id":"","url":"https://api.github.com/users/bsittler","html_url":"https://github.com/bsittler","followers_url":"https://api.github.com/users/bsittler/followers","following_url":"https://api.github.com/users/bsittler/following{/other_user}","gists_url":"https://api.github.com/users/bsittler/gists{/gist_id}","starred_url":"https://api.github.com/users/bsittler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsittler/subscriptions","organizations_url":"https://api.github.com/users/bsittler/orgs","repos_url":"https://api.github.com/users/bsittler/repos","events_url":"https://api.github.com/users/bsittler/events{/privacy}","received_events_url":"https://api.github.com/users/bsittler/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T23:40:45Z","updated_at":"2016-03-07T23:40:45Z","body":"Given that it's a map with a complex key, and only a single (ambiguous) part of the key is directly usable in lookup operations, do you have any ideas on method naming for the asynchronous get/read/match accessor(s)? I'm thinking that conceptually the operations web apps usually need to perform are likely:\r\n\r\n0. what is the serialization of currently in-scope cookies?\r\n1. are any cookies with name X present?\r\n2. what are all the in-scope cookie values with name X?\r\n3. what is the value of the first-listed in-scope cookie with name X?\r\n4. what are the names of all in-scope cookies with names like Y?\r\n5. what are the names and values of all in-scope cookies?\r\n6. a specific list of operations of type 1, 2, 3, and/or 4, to be performed at a single instantaneous snapshot of the serialized in-scope cookies\r\n\r\nFor all \"name X\" cases, wildcard naming support (or at least prefix-matching support) is very helpful. This is useful when deciding which cookies to clear at logout and also for log-structured (or otherwise sharded) cookie operations designed to work reliably in the presence of slow network + inter-window race conditions."}}