-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/cookie #144
Feature/cookie #144
Conversation
Now the cookies can be extracted raw, or converted to a list of maps
lib/drab/utils.ex
Outdated
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be no more than 1 consecutive blank lines.
lib/drab/utils.ex
Outdated
end | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be no more than 1 consecutive blank lines.
lib/drab/utils.ex
Outdated
# |> (&((encode || encrypt) && Base.encode64(&1, padding: false) || &1)).() | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be no more than 1 consecutive blank lines.
Ebert has finished reviewing this Pull Request and has found:
But beware that this branch is 10 commits behind the You can see more details about this review at https://ebertapp.io/github/grych/drab/pulls/144. |
Again, I see no point to keep set_cookie cookie, value # no encoding
set_cookie cookie, value, encode: true # default &Drab.Coder.encode/1
set_cookie cookie, value, encode: Drab.Coder.URL # calling Drab.Coder.URL.encode
set_cookie cookie, value, encode: Any.Other.Module # calling Any.Other.Module.encode
cookie cookie # no encoding
cookie cookie, decode: true # default decode
cookie cookie, decode: Drab.Coder.URL Let's cut Drab.Utils with Ockham's razor ;) |
Was not intentional, I've pushed a bad commit forgetting that it would be update also the pr, sorry I'm going to remove Drab.Utils |
Hi @guidotripaldi, don't worry, I understand you don't have time for this. I am going to do a cookie functions myself. Thanks for all the help! You really helped me a lot. |
No description provided.