mime_lst.c
来自「基于nucleus实时操作系统的webserver源代码」· C语言 代码 · 共 62 行
C
62 行
/************************************************************************
*
* 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 + =
减小字号Ctrl + -
显示快捷键?