luckyframework / lucky

A full-featured Crystal web framework that catches bugs for you, runs incredibly fast, and helps you write code that lasts.
https://luckyframework.org
MIT License
2.57k stars 156 forks source link

Add Lucky::CookieJar#[] and #[]= #1678

Closed grepsedawk closed 2 years ago

grepsedawk commented 2 years ago

Adds easier access to cookies by adding the typical key/value syntax for cookies get/set operations

In the future, this could potentially even implement all of Enumerable({K, V}), but these methods are super helpful as is to provide hash-like access to cookies

grepsedawk commented 2 years ago

The types need to be specified

Ah cool, I thought being a direct alias the implicit types would be fine. Will change that.