Error in src/server.cr:18: instantiating 'HTTP::Server#listen()'
server.listen
^~~~~~
in /usr/share/crystal/src/http/server.cr:349: instantiating 'Array(Socket::Server)#each()'
@sockets.each do |socket|
^~~~
in /usr/share/crystal/src/indexable.cr:187: instantiating 'each_index()'
each_index do |i|
^~~~~~~~~~
in /usr/share/crystal/src/indexable.cr:187: instantiating 'each_index()'
each_index do |i|
^~~~~~~~~~
in /usr/share/crystal/src/http/server.cr:349: instantiating 'Array(Socket::Server)#each()'
@sockets.each do |socket|
^~~~
in /usr/share/crystal/src/http/server.cr:362: expanding macro
spawn handle_client(_io)
^
in macro 'spawn' /usr/share/crystal/src/concurrent.cr:97, line 9:
1.
2. ->(
3.
4. __arg0 : typeof(_io),
5.
6.
7. ) {
8. spawn(name: nil) do
> 9. handle_client(
10.
11. __arg0,
12.
13.
14. )
15. end
16.
17. }.call(_io)
18.
19.
instantiating 'handle_client(IO+)'
in /usr/share/crystal/src/http/server.cr:396: instantiating 'HTTP::Server::RequestProcessor#process(IO+, IO+)'
@processor.process(io, io)
^~~~~~~
in /usr/share/crystal/src/http/server/request_processor.cr:16: instantiating 'process(IO+, IO+, IO::FileDescriptor)'
def process(input, output, error = STDERR)
^
in /usr/share/crystal/src/http/server/request_processor.cr:39: instantiating '(HTTP::Handler | Proc(HTTP::Server::Context, Nil))#call(HTTP::Server::Context)'
@handler.call(context)
^~~~
in /usr/share/crystal/src/http/server/handlers/compress_handler.cr:12: expanding macro
{% if flag?(:without_zlib) %}
^