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
usop[m] has joined #crystal-lang
usop[m] has left #crystal-lang [#crystal-lang]
notzmv has joined #crystal-lang
notzmv has quit [Read error: Connection reset by peer]
jhass has quit [Ping timeout: 250 seconds]
jhass has joined #crystal-lang
notzmv has joined #crystal-lang
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #crystal-lang
<tprepper> Hey, Blacksmoke16Geor. I'm currently trying out Athena and I really like it. I'm wondering if it's possible to perform an action after a response has been returned the same way as Athena::Framework::Events::Terminate but only per one route/event rather than every route.
_ht has joined #crystal-lang
notzmv has quit [Ping timeout: 252 seconds]
alexherbo2 has quit [*.net *.split]
notzmv has joined #crystal-lang
jmdaemon has quit [Ping timeout: 252 seconds]
<Blacksmoke16Geor> tprepper: glad to hear! the terminate event has access to the request, so you could probably key off of like `request.attributes.get("_controller", String)`
<Blacksmoke16Geor> are some other options, what's the use case?
Sankalp- has joined #crystal-lang
Sankalp has quit [Ping timeout: 252 seconds]
Sankalp- is now known as Sankalp
alexherbo2 has joined #crystal-lang
jmdaemon has joined #crystal-lang
<tprepper> Blacksmoke16Geor: use case is to to start a download of something that would take a while when requested. I'm not sure if I'm going about it the wrong way, haven't worked with event-based libraries like Athena before. the request attribute method seems like a good idea.
<Blacksmoke16Geor> of code generated as part of the controller action? or of a static file/asset?
<Blacksmoke16Geor> of content*
<Blacksmoke16Geor> like is the controller action dynamically building a CSV string or something, or does the file already exist in the file system?
_ht has quit [Quit: _ht]
<Blacksmoke16Geor> tprepper:
Sankalp has quit [Ping timeout: 255 seconds]
alexherbo2 has quit [Remote host closed the connection]
Sankalp has joined #crystal-lang
Sankalp has quit [Ping timeout: 255 seconds]