完善http服务器mime类别

This commit is contained in:
xiongziliang
2020-01-02 18:24:11 +08:00
parent 52d831e990
commit d482dc1c05
2 changed files with 121 additions and 32 deletions

View File

@@ -69,6 +69,13 @@ public:
* @param cb 回调对象
*/
static void onAccessPath(TcpSession &sender, Parser &parser, const invoker &cb);
/**
* 获取mime值
* @param name 文件后缀
* @return mime值
*/
static const string &getContentType(const char *name);
private:
HttpFileManager() = delete;
~HttpFileManager() = delete;