function __construct($config = array()) { parent::__construct($config); $mimes = (require LIBPATH . '/data/mimes.php'); $this->mime_types = array_flip($mimes); $this->config = $config; $this->parser = new Swoole\Http\Parser(); }
function __construct($config = array()) { parent::__construct($config); $mime = new Swoole\MimeType(); $this->mime_types = array_flip($mime->getAll()); $this->config = $config; $this->parser = new Swoole\Http\Parser(); }