⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htfilter.h

📁 www工具包
💻 H
字号:
/*    					W3C Sample Code Library libwww BEFORE and AFTER Filters!  Standard BEFORE and AFTER Filters!*//***	(c) COPYRIGHT MIT 1995.**	Please first read the full copyright statement in the file COPYRIGH.*//*This module provides a set of default BEFORE and AFTER filtersthat can be registered by the Net manager to becalled before and after a request. All filters can be registered either tobe called globally (all requests) or locally (pr request basis).This module is implemented by HTFilter.c, and itis a part of the  W3C Sample CodeLibrary.*/#ifndef HTFILTER_H#define HTFILTER_H#include "WWWLib.h"/*.  BEFORE Filters.This is a standard set of BEFORE filters which the application mayinitialize. This can be done in an easy way using the functionHTBeforeInit() in the Initializationinterface.(  Proxy and Gateway BEFORE filter)Checks for registerd proxy servers or gateways and sees whether this requestshould be redirected to a proxy or a gateway. Proxies have higher prioritythan gateways so we look for them first! For HTTP/1.0 and HTTP/1.1 we mayonly send a full URL (including the host portion) to proxy servers. Therefore,we tell the Library whether to use the full URL or the traditional HTTP onewithout the host part.*/extern HTNetBefore HTProxyFilter;/*(  Rule Translation BEFORE Filter)If we have a set of rules loaded (see the Rule manager) then check beforeeach request whether how that should be translated. The trick is that a parentanchor has a "address" which is the part from the URL we used when we createdthe anchor. However, it also have a "physical address" which is the placewe are actually going to look for the resource. Hence this filter translatesfrom the address to the physical address (if any translations are found)*/extern HTNetBefore HTRuleFilter;/*(  Memory Cache (History List) Validation BEFORE Filter)Check if document is already loaded. The user can define whether the historylist should follow normal expiration or work as a traditional history listwhere expired documents are not updated. We don't check for anything butexistence proof of a document associated with the anchor as the definitionis left to the application.*/extern HTNetBefore HTMemoryCacheFilter;/*(  Client side authentication BEFORE filter)The filter generates the credentials required to access a document Gettingthe credentials may involve asking the user in which case we use the methodsregistered by the HTAlert module*/    extern HTNetBefore HTCredentialsFilter;/*.  AFTER Filters.Like BEFORE filters we provide a default set of typical AFTERfilters that may be initialized by the application. Again, an easy way ofdoing this is to call the HTAfterInit() function in theInitialization interface.(  Error and Information filter)It checks the status code from a request and generates an error/informationmessage if required.*/extern HTNetAfter HTInfoFilter;/*(  Redirection filter)The redirection handler only handles automatic redirections on the GETor HEAD method (or any other safe method). The users is asked forall other methods.*/extern HTNetAfter HTRedirectFilter;/*(  Proxy Redirection filter)This filter handles a "305 Use Proxy" response and retries therequest through the proxy*/extern HTNetAfter HTUseProxyFilter;/*(  Client side authentication filter)The client side authentication filter uses the user dialog messages registeredin the HTAlert module. By default these are theones used by the line mode browser but you can just register something else.*/extern HTNetAfter HTAuthFilter;/*(  Client side authentication information filter)This filter updates the client's local authentication information database with new information sent by the server via the authentication-info header.This header is currently used only by the Digest authentication scheme.This filter is initialized by default, but you can just register somethingelse.*/extern HTNetAfter HTAuthInfoFilter;/*(  Request Common Log File Filter)Default Logging filter using the log manager provided by theLog Manager.*/extern HTNetAfter HTLogFilter;/*(  Request Referer Log File Filter)Default Referer Log filter using the log manager provided by theLog Manager.*/extern HTNetAfter HTRefererFilter;/**/#endif /* HTFILTER_H *//*    @(#) $Id: HTFilter.html,v 2.13 1999/02/03 16:35:11 frystyk Exp $*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -