📄 mime_lst.c
字号:
/************************************************************************
*
* CopyrIght (c) 1993 - 2001 Accelerated Technology, Inc.
*
* PROPRIETARY RIGHTS of Accelerated Technology are involved in the subject
* matter of this material. All manufacturing, reproduction, use and sales
* rights pertaining to this subject matter are governed by the license
* agreement. The recipient of this software implicity accepts the terms
* of the license.
*
*************************************************************************/
/************************************************************************
*
* FILE NAME VERSION
*
* mim_list.c - MIME LIST 1.5
*
* COMPONENT
*
* Nucleus WebServ
*
* DESCRIPTION
*
* This file holds the structure of mime types that will be
* sent to a browser. This structure also contains
*
* DATA STRUCTURES
*
* HTTP_Mime_Table Holds the mime extensions.
*
* FUNCTIONS
*
*
* DEPENDENCIES
*
* nu_websrv.h
*
*************************************************************************/
#include "webserv/inc/nu_websr.h"
/* The mime table maps file types to mime extensions.
* if the file type does not require a header sent with
* the reply, NU_NULL is associated with it.
*/
WS_MIME_TABLE MIME_Mime_Table[]=
{
{"txt", "text/plain"},
{"text", "text/plain"},
{"html", "text/html"},
{"htm", "text/html"},
{"gif", "image/gif"},
{"jpg", "image/jpeg"},
{"jpeg", "image/jpeg"},
{"jar", NU_NULL},
{NU_NULL, NU_NULL}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -