[PATCH v6 11/12] net/httpd: add httpd common code