Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
Set by moderator on 11 May 2018.
00:09 lancew joined 01:57 ilbot3 joined
moderator Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
06:21 sena_kun joined 08:07 lancew joined 10:29 lancew_ joined 12:25 lancew_ joined 13:09 lancew_ joined 13:38 ilbot3 joined
moderator Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
14:07 lancew joined 14:54 chsanch joined
chsanch Hi, I'm doing some tests with Cro (which is awesome BTW), and I was wondering if there's an easy way to get the response time, don't know if there's a method in Cro::HTTP::Response 14:58
lancew Hi chsanch, not one I know the answer too... but would like to know too. 15:04
15:14 lancew_ joined 15:31 lancew joined 15:33 lancew_ joined
jnthn chsanch: Nothing built in for that, but it could be done with middleware 16:16
chsanch: gist.github.com/jnthn/12bfe6231b75...c1d25845c1 is one way to do it 16:22
See cro.services/docs/reference/cro-http-middleware for how to factor it out into a reusable class 16:23
chsanch jnthn: Thanks! I'll check it out 16:25
18:37 lancew_ joined