Welcome the channel on the development of Cro, a set of libraries for building reactive distributed systems, lovingly crafted to take advantage of all the Raku Programming Language has to offer (cro.services). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
05:41 Xliff joined
Xliff This mechanism could be exploited by Cro-based servers for implementing virtual hosting. Consider: 05:41
route { get { content 'text.html', load-template('index.crotmp') }; } # Normal 05:42
route { get -> :$Host is required is header where * eq 'my.virtual.host' { content 'text.html', load-template('mvh-index.crotmp') }; } # Only shows up when my.virtual.host is used to access the server 05:43
There are drawbacks to this, but it is nice to know that the effect is possible.
Now to figure out how to make it configurable.... Hmmm....
08:30 xinming left 08:32 xinming joined 08:46 sena_kun joined 16:55 xinming left 16:56 xinming joined 17:33 xinming left, xinming joined
Xliff /j #raku 18:35
20:26 rypervenche joined 23:40 sena_kun left