HTTP.server
says it can’t be finalizer
d.
ERROR: objects of type HTTP.Servers.Server{HTTP.Servers.Listener{Nothing, Sockets.TCPServer}} cannot be finalized
So if I have a struct
like
mutable struct M
reciverClient::HTTP.Server
function M()
reciverClient = HTTP.serve!(ip,port) do req
return HTTP.Response()
end
new(reciverClient)
end
end
client = M()
How can I make sure that I can make a new instance of client
? Does the user have to manually call close
on client.reciverClient
?