Rack is a common interface to interact with different ruby server
to understand the concept of http server, we just need to search for some ruby code that implement a tcp server without any library.
here is a potato for you
server = TCPServer.new('localhost', 12345)