title: Why CUPS ships a web server instead of using httpd?
body: <p>CUPS implements its own web server to host CGI programs on <a href="http://localhost:631" rel="nofollow noreferrer">http://localhost:631</a></p>
  
  <p>server: <a href="https://github.com/apple/cups/blob/master/cups/http.c" rel="nofollow noreferrer">https://github.com/apple/cups/blob/master/cups/http.c</a></p>
  
  <p>CGI pages: <a href="https://github.com/apple/cups/tree/master/cgi-bin" rel="nofollow noreferrer">https://github.com/apple/cups/tree/master/cgi-bin</a></p>
  
  <p>Creating a web server just for a printing daemon seems like duplicate code and bloat that might lead to code harder to maintain and possible creation of bugs.</p>
  
  <p>Why an actual httpd daemon like Apache is not used?</p>