htmulti.h
来自「www工具包」· C头文件 代码 · 共 76 行
H
76 行
/* W3C Sample Code Library libwww Content Negotiation! Content Negotation!*//*** (c) COPYRIGHT MIT 1995.** Please first read the full copyright statement in the file COPYRIGH.*//*As part of the HTTP content negotiation, a server must be able to match thepreferences sent by the client in an HTTP request with the possible set ofdocuments that it has avaiable for this URL. For example , it may have anEnglish and a Danish version in which case it looks at theAccept-Language header and sees what the client prefers. TheLibrary has a simple "Match" algorithm for finding the best as specifiedby the HTTP specification. As the content algorithm is part of the File Interfacethen all file access regardless of whether it is from a server or a clientapplication will be able to content negotiotion.This module is implemented by HTMulti.c, and it isa part of the W3C Sample CodeLibrary*/#ifndef HTMULTI_H#define HTMULTI_H#include "HTReq.h"/*This function is used when the best match among several possible documentsis to be found as a function of the accept headers sent in the client request.. Set the default Welcome page.Set default file name for welcome page on each directory.*/extern void HTAddWelcome (char * welcome_name);/*. Content Negotiation Algorithm.This function looks for a set of bindings betweena set of possible objects to be served on a request on the local file system.*/extern char * HTMulti (HTRequest * req, char * path, struct stat * stat_info);/**/#endif /* HTMULTI_H *//* @(#) $Id: HTMulti.html,v 2.17 1998/05/14 02:10:46 frystyk Exp $*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?