def create_server
      core = @core
      Sinatra.new do
        include WebListener

        configure { instance_eval(&WebServer.configuration) }
        post('/*') { handle_post(core, request, params) }
        error(Sinatra::NotFound) { [405, 'Method not allowed'] }
      end
    end
def create_server
      core = @core
      Sinatra.new do
        include WebListener

        configure { instance_eval(&WebServer.configuration) }
        post('/*') { handle_post(core, request, params) }
        error(Sinatra::NotFound) { [405, 'Method not allowed'] }
      end
    end
Creates a new Sinatra server for handling incoming requests.

 @return [Class] the created server