Comments (5)
A new method to handle cookies makes sense, however everything relating to cookies I have extracted to the cookie project. https://hex.pm/packages/cookie
from raxx.
This makes sense. What API would you suggest? The cookie headers are special cases in HTTP requests because there are different rules for combining multiple cookie headers, so I've never been sure if this should live in Raxx core or the cookie project somehow
from raxx.
Raxx.set_header
will keep me from inserting multiple cookies. But as I have mentioned before, simply use Map.update!
to append new cookie structure like {"set-cookie", "foo=bar"}
in the response.header
seems working smoothly. Raxx
seems to have the ability to handle multiple {"set-cookie", _}
items correctly. Maybe add a special conflict check for set-cookie
header or just a new method to handle cookies?
from raxx.
I think I will close this issue, in favour of improving the :cookie
project.
from raxx.
This issue should not be closed, because the cookie package does not handle set-cookie
header at all. Currently it's not possible to have multiple set-cookie
headers in Raxx and the cookie library cannot change that because it's a Raxx limitation.
from raxx.
Related Issues (20)
- Add middleware proof of concept HOT 10
- Remove handle_request from Raxx.Server behaviour HOT 2
- Should setting a body on a GET request raise an error. HOT 1
- Benchmark different Raxx.Stack state structures and switch to the fastest one HOT 1
- Add a Middleware-aware Router HOT 5
- make `use Raxx.Middleware` a thing HOT 2
- Feature Proposal: Raxx.Context HOT 3
- New 1.0 roadmap HOT 11
- Remove eex_html dep? HOT 5
- Handle unexpected HTTP verb HOT 6
- Incorrect parsing of request when path looks like an absolute url HOT 1
- Raxx.Session 1.0 Roadmap
- Raxx.View 1.0 Roadmap
- Raxx.Logger 1.0 Roadmap
- can we have both server streaming and simple request/response in same module?
- Fix specs, to show that Raxx.data can contain iodata
- Gleam HOT 6
- Raxx.View add a way to have page metadata in the layout
- Project status? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raxx.