4 Star 3 Fork 4

Gitee 极速下载/Tiny-httpd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Huangtuzhi/Tinyhttpd
克隆/下载
common.h 860 Bytes
一键复制 编辑 原始数据 按行查看 历史
Huangtuzhi 提交于 10年前 . new
#ifndef COMMON
#define COMMON
#include <QDebug>
#include <QString>
#include <QDateTime>
const QString APPLICATION_NAME = "TinyHttpServer";
const QString APPLICATION_VERSION = "0.0.1";
const QString APPLICATION_IDENTIFIER = APPLICATION_NAME + '/' + APPLICATION_VERSION;
const QString CONFIG_FILE = "tinyhttpd.ini";
const QString MIME_TYPE_FILE = "mime.txt";
const QString DEFAULT_HTTPD_LOGFILE = "tinyhttpd.log";
const int DEFAULT_REQUEST_BUFFER_SIZE = 65536;
const bool DEFAULT_REQUEST_KEEP_ALIVE_ENABLE = true;
const bool DEFAULT_REQUEST_KEEP_ALIVE_DEFAULT = true;
const int DEFAULT_REQUEST_KEEP_ALIVE_TIMEOUT = 30;
const int DEFAULT_REQUEST_KEEP_ALIVE_TIMEOUT_MAX = 300;
const bool DEFAULT_SITE_DIR_LISTING = false;
class Common
{
public:
static QString getTimeStampString(QDateTime datetime = QDateTime::currentDateTimeUtc());
};
#endif // COMMON
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/Tiny-httpd.git
git@gitee.com:mirrors/Tiny-httpd.git
mirrors
Tiny-httpd
Tiny-httpd
master

搜索帮助