Pergunta de entrevista da empresa Apple

How would you create a program in SystemD that could take in an HTTP request over Port 80, and then forward and start up a web server to process the request, and then shutdown?