Closed RemiKalbe closed 5 years ago
It's pretty much synthetic sugar as you can use headers to check cookies, but it's more intuitive as you can use
context.response.cookies["cookie-name"]
with the onyx framework.
So using
response = Onyx::HTTP::Spec.method( ... )
response.cookies["cookie-name"]
with specs seems more seamless and logical
It's been merged.
I came across a case when I need to check a cookie from an HTTP request's response at testing.