ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
ur5us_ has quit [Ping timeout: 240 seconds]
ur5us_ has joined #crystal-lang
ur5us_ has quit [Ping timeout: 240 seconds]
ur5us_ has joined #crystal-lang
waleee has quit [Ping timeout: 240 seconds]
notzmv has quit [Ping timeout: 268 seconds]
ur5us_ has quit [Ping timeout: 240 seconds]
notzmv has joined #crystal-lang
notzmv has quit [Ping timeout: 250 seconds]
ur5us_ has joined #crystal-lang
ur5us_ has quit [Ping timeout: 240 seconds]
notzmv has joined #crystal-lang
dostoyevsky2 has quit [Quit: Lost terminal]
dostoyevsky2 has joined #crystal-lang
<FromGitter> <rishavs> How can we pass data from one HTTP handler to another? I can't mutate the context nor pass data anyhow. Currently I am using a global object which is recreated on each request but that feels icky
<FromGitter> <Blacksmoke16> pretty sure your only option is to like monkeypatch something into `HTTP::Server::Context`
<FromGitter> <rishavs> that sounds scary :/
<FromGitter> <Blacksmoke16> what kinda of data is it?
<FromGitter> <moe:busyloop.net> yup patch or wrap context. ⏎ alternatively you could store it in Fiber, but that's not nice.
<FromGitter> <jrei:matrix.org> Or use a framework
<FromGitter> <jrei:matrix.org> `HTTP::Server` is quite limited - you'll end up re-inventing what small frameworks do
waleee has joined #crystal-lang
<FromGitter> <Blacksmoke16> i been trying for a while :P
<FromGitter> <moe:busyloop.net> yea, you gotta know when to stop. otherwise you end up like blacksmoke and invent an entire ecosystem 😬
<FromGitter> <Blacksmoke16> #worthIt
<FromGitter> <Blacksmoke16> oops, random markdown formatting...
<FromGitter> <tenebrousedge> where in the book is the stabby `->` method forwarding thing covered? I cannot finds it D:
<FromGitter> <tenebrousedge> nah, like when you do `&->some_method`
<FromGitter> <tenebrousedge> hmm, kay. I guess that's what we get. Thank you muchly
rymiel has quit [Quit: quit]
rymiel has joined #crystal-lang
ur5us_ has joined #crystal-lang
notzmv has quit [Ping timeout: 268 seconds]
notzmv has joined #crystal-lang
ur5us_ has quit [Ping timeout: 240 seconds]
notzmv has quit [Ping timeout: 256 seconds]
ur5us_ has joined #crystal-lang