亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? htformat.h

?? firtext搜索引擎源碼
?? H
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/*    					W3C Sample Code Library libwww Stream Pipe Manager!  The Stream Pipe Manager!*//***	(c) COPYRIGHT MIT 1995.**	Please first read the full copyright statement in the file COPYRIGH.*//*The Stream Pipe Manager is responsible for setting up the stream pipe fromthe Channel Object to theRequest Object when data is arriving, for exampleas a response to s HTTP Get request. As dataarrives, we start to parse it and the more we know the more we can buildup our stream pipe. For example, in the case of HTTP, we first have a streamthat can parse the HTTP response line containing "200 OK". Thenwe have a MIME parser for handling the MIME headers.When the MIME headers have been parsed, we know the content type and anyencoding of the MIME body. If we need to decode a chunked encoding then weset up a chunked decoder, and if we have to parse a HTML object then we setup a HTML parser.The Format Manager is also responsible for keeping track of the"preferences" of the application and/or user. It is an integral partof the Web and HTTP, that the client application can express its preferencesas a set of "accept" headers in a HTTP request. This task is highly relatedto the task mentioned above as we there use the modules that are registeredand here tell the remote server what we are capable of doing and what wewould prefer.Note: The library core does not define any default decodersor parsers - they are all considered part of the application. The librarycomes with a default set of parsers including the ones mentioned above whichcan be initiated using the functions in HTInitmodule. There are different initialization functions for content typeparsers and content encodings respectively.	 	   o 	     Content Type Converters and Presenters  o 	     Content Encoders and Decoders  o 	     Content Charsets  o 	     Natural Languages	 The application can assign its preferences in two ways: either locallyto a single request or globally to all requests. The local assignmentcan either add to or override the global settings dependingon how they are registered. All local registration is handled by theRequest Object and the global registration is handledby the Format Manager.This module is implemented by HTFormat.c, and itis a part of the W3C Sample CodeLibrary.*/#ifndef HTFORMAT_H#define HTFORMAT_H#include "HTUtils.h"#include "HTStream.h"#include "HTAtom.h"#include "HTList.h"#include "HTAnchor.h"#include "HTReq.h"/*.  Converters and Presenters.All content type converters are subclassed from the Generic stream objetc.That way, we allow the application to do very fast progressive display ofincoming data. In other words, the stream model of the Library provides dataas soon as it arrives from the network, the application does not have towait until the whole document has been down loaded before it starts parsingit.(  Predefined Content Types)These macros (which used to be constants) define some basic internally referencedrepresentations. The www/xxx ones are of course not MIME standard.They are internal representations used in the Library but they can't be exportedto other apps!*/#define WWW_INTERNAL	HTAtom_for("www/*")          /* All internal formats *//*WWW_INTERNAL represent all internal formats. This can for examplebe used to match using the HTMIMEMatch(...).*/#define WWW_RAW		HTAtom_for("www/void")   /* Raw output from Protocol *//*WWW_RAW is an output format which leaves the input untouchedexactly as it is received by the protocol module. For example, inthe case of FTP, this format returns raw ASCII objects for directory listings;for HTTP, everything including the header is returned, for Gopher, a rawASCII object is returned for a menu etc.*/#define WWW_SOURCE	HTAtom_for("*/*")/*WWW_SOURCE is an output format which leaves the input untouchedexactly as it is received by the protocol module IF not asuitable converter has been registered with a quality factor higher than1 (for example 2). In this case the SUPER CONVERTER is preferredfor the raw output. This can be used as a filter effect that allows conversionfrom, for example raw FTPdirectory listings into HTML but passes a MIME bodyuntouched.*/#define WWW_PRESENT	HTAtom_for("www/present")/*WWW_PRESENT represents the user's perception of the document.If you convert to WWW_PRESENT, you present the material to theuser.*/#define WWW_DEBUG	HTAtom_for("www/debug")/*WWW_DEBUG represents the user's perception of debug information,for example sent as a HTML document in a HTTP redirection message.*/#define WWW_UNKNOWN     HTAtom_for("www/unknown")/*WWW_UNKNOWN is a really unknown type. It differs from the realMIME type "application/octet-stream" in that we haven't even triedto figure out the content type at this point.*/#define WWW_CACHE         HTAtom_for("www/cache")#define WWW_CACHE_APPEND  HTAtom_for("www/cache-append")/*WWW_CACHE is the internal content-type designated for a persistentcache module which can store the object to local storage. The cache appendformat is special in that we append information to an already existing cacheentry. This can happen if we have issued a If-Range requestand got back a "206 Partial response".These are regular MIME types defined. Others can be added!*/#define WWW_HTML 	HTAtom_for("text/html")#define WWW_PLAINTEXT 	HTAtom_for("text/plain")#define WWW_FORM	HTAtom_for("application/x-www-form-urlencoded")#define WWW_MIME	HTAtom_for("message/rfc822")#define WWW_MIME_HEAD	HTAtom_for("message/x-rfc822-head")#define WWW_MIME_FOOT	HTAtom_for("message/x-rfc822-foot")#define WWW_MIME_PART   HTAtom_for("message/x-rfc822-partial")#define WWW_MIME_CONT   HTAtom_for("message/x-rfc822-cont")#define WWW_MIME_UPGRADE	HTAtom_for("message/x-rfc822-upgrade")#define WWW_MIME_COPYHEADERS HTAtom_for("www/x-rfc822-headers")#define WWW_AUDIO       HTAtom_for("audio/basic")#define WWW_VIDEO 	HTAtom_for("video/mpeg")#define WWW_GIF 	HTAtom_for("image/gif")#define WWW_JPEG 	HTAtom_for("image/jpeg")#define WWW_TIFF 	HTAtom_for("image/tiff")#define WWW_PNG 	HTAtom_for("image/png")#define WWW_BINARY 	HTAtom_for("application/octet-stream")#define WWW_POSTSCRIPT 	HTAtom_for("application/postscript")#define WWW_RICHTEXT 	HTAtom_for("application/rtf")/*We also have some MIME types that come from the various protocols when weconvert from ASCII to HTML.*/#define WWW_GOPHER_MENU HTAtom_for("text/x-gopher")#define WWW_CSO_SEARCH	HTAtom_for("text/x-cso")#define WWW_FTP_LNST	HTAtom_for("text/x-ftp-lnst")#define WWW_FTP_LIST	HTAtom_for("text/x-ftp-list")#define WWW_NNTP_LIST   HTAtom_for("text/x-nntp-list")#define WWW_NNTP_OVER	HTAtom_for("text/x-nntp-over")#define WWW_NNTP_HEAD	HTAtom_for("text/x-nntp-head")#define WWW_HTTP	HTAtom_for("text/x-http")/*Finally we have defined a special format for our RULE files as they can behandled by a special converter.*/#define WWW_RULES	HTAtom_for("application/x-www-rules")/*(  The Quality Factor)Characteristic for all preferences is that there is a quality factor associatedwith each member. The quality factor is a real number between 0 and 1 with0 meaning "very bad" and 1 means "perfect". By registering a natural languageor any or other preference in this group together with a quality factor youcan specify "how well the preference is handled" either by the applicationor by the user. In the case of the user the quality factor of a natural languageis how well the user understands the language. In my case, the quality factorsfor, for example Greek would be close to zero and 1 for Danish (nothing badsaid about Greek!).It is a bit different for converters where it is often the application'sability of handling the data format rather than the user's perception. Asan example it is often faster to use a converter than a presenter as it takestime to launch the external application and libwww can not use progressivedisplay mechanisms which is often the case for converters. Therefore, asan example, if we capable of handling an image in png format inlinebut rely on an external viewer for presenting postscript, we might set upthe following list:HTConversion_add (converters, "image", "www/present", GifPresenter,1.0, 0.0, 0.0);HTPresentation_add (presenters, "application/postscript", "ghostview %s",NULL, 0.5, 0.0, 0.0);>where the gif converter is registered with a quality factor of 1.0and the postscript presenter with a quality factor of 0.5.RegisterPresenters(  The Converter Class)A converter is a stream with a special set of parameters andwhich is registered as capable of converting from a MIME type to somethingelse (maybe another MIME-type). A converter is defined to be a function returninga stream and accepting the following parameters. The content type elementsare atoms for which we have defined a prototype.*/typedef HTStream * HTConverter	(HTRequest *	request,				 void *		param,				 HTFormat	input_format,				 HTFormat	output_format,				 HTStream *	output_stream);extern void HTConversion_add   (HTList *	conversions,				const char * 	rep_in,				const char * 	rep_out,				HTConverter *	converter,				double		quality,				double		secs, 				double		secs_per_byte);extern void HTConversion_deleteAll	(HTList * list);/*(  The Presenter Class)A presenter is a module (possibly an external program) whichcan present a graphic object of a certain MIME type to the user. That is,presenters are normally used to present objects that theconverters are not able to handle. Data is transferred to theexternal program using a special "presenter stream" which for example canuse the local disk to transfer the data from libwww to the external program.Libwww provides a default HTSaveAndExecutestream which you may want to use for this purpose. However, any streamthat is of type HTConverter will do. You can manage thespecial presenter stream using the following methods:*/extern void HTPresentation_setConverter (HTConverter * pconv);extern HTConverter * HTPresentation_converter (void);/*Both presenters and converters are of the typeHTConverter.*/extern void HTPresentation_add (HTList *	conversions,				const char * 	representation,				const char * 	command,				const char * 	test_command,				double		quality,				double		secs, 				double		secs_per_byte);extern void HTPresentation_deleteAll	(HTList * list);/*(  Basic Converters)We have a small set of basic converters that can be hooked in anywhere. Theydon't "convert" anything but are nice to have.*/extern HTConverter HTThroughLine;extern HTConverter HTBlackHoleConverter;extern HTConverter HTSaveConverter;/*.  Content and Transfer Encoders and Decoders.Content codins are transformations applied to an entity object after it wascreated in its original form. The Library handles two types of codings:      Content Codings      Content codings values indicate an encoding transformation that has been    applied to a resource. Content cosings are primarily used to allow a document    to be compressed or encrypted without loosing the identity of its underlying    media type.      Content Transfer Codings      Content transfer codings values are used to indicate an encoding transformation    that has been, can be, or may be need to be applied to an enity body in order    to ensure safe transport through the network. This differs from a content    coding in that the transfer coding is a property of the message, not the    original message.Both types of encodings use the same registration mechanism in the Librarywhich we describe below:(  Encoders and Decoders)Encoders and decoders are subclassed from thegeneric stream class. Encoders are capableof adding a content coding to a data object and decoders can removea content coding.*/typedef HTStream * HTCoder	(HTRequest *	request,				 void *		param,				 HTEncoding	coding,				 HTStream *	target);/*The encoding is the name of the encoding mechanism reporesentedas an atom, for example "zip", "chunked", etc.Encodings are registered in lists and content encodings are separated fromtransfer encodings by registering them in different lists.(  Basic Encoders)We have a small set of basic coders that can be hooked in anywhere.

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产污污免费网站入口| 久久精品这里都是精品| 国产精品乡下勾搭老头1| 亚洲精品乱码久久久久久黑人| 欧美一区二区人人喊爽| 99久精品国产| 国产一区 二区 三区一级| 亚洲国产视频网站| 国产精品久久免费看| 精品国产1区二区| 欧美日韩一级视频| 99re视频精品| 欧美精品 国产精品| 成人aa视频在线观看| 日韩成人精品在线| 亚洲九九爱视频| 国产日产欧美精品一区二区三区| 欧美日韩高清一区二区不卡| 91一区在线观看| 国产乱子伦视频一区二区三区| 午夜久久久影院| 一卡二卡欧美日韩| 亚洲欧洲99久久| 亚洲国产精品精华液2区45| 日韩欧美专区在线| 欧美精品99久久久**| 在线看国产一区| 99综合电影在线视频| 国产成人在线网站| 国产精品一二三区| 韩国成人精品a∨在线观看| 美女视频黄频大全不卡视频在线播放| 香蕉久久一区二区不卡无毒影院| 国产精品久久久久一区二区三区 | 欧美一区二区三区思思人| www.日韩大片| 国产1区2区3区精品美女| 激情综合网最新| 精品一区二区三区视频在线观看| 日本亚洲免费观看| 蜜臀99久久精品久久久久久软件 | 另类成人小视频在线| 日韩精品国产欧美| 日韩电影免费在线看| 天堂蜜桃一区二区三区| 免费视频最近日韩| 久久国产综合精品| 韩国成人福利片在线播放| 国产乱码一区二区三区| 国产丶欧美丶日本不卡视频| 菠萝蜜视频在线观看一区| 9l国产精品久久久久麻豆| 色综合久久九月婷婷色综合| 亚洲男人天堂av网| 国产精品色哟哟| 亚洲图片激情小说| 亚洲一区二区三区四区的| 亚洲曰韩产成在线| 日韩激情在线观看| 久久99国产精品免费网站| 国产91精品久久久久久久网曝门| caoporen国产精品视频| 在线精品视频一区二区三四| 制服丝袜亚洲网站| 国产欧美一区二区精品秋霞影院| 最新国产成人在线观看| 香蕉成人伊视频在线观看| 久久国产精品色婷婷| 国产成人精品一区二区三区网站观看| 色综合久久中文字幕| 91精品国产91久久久久久一区二区 | 国产制服丝袜一区| 99精品欧美一区二区三区综合在线| 在线免费观看日韩欧美| 欧美videossexotv100| 国产精品午夜电影| 午夜免费欧美电影| 国v精品久久久网| 欧美色图在线观看| 久久久久久久电影| 亚洲电影在线播放| 国产一区二区三区电影在线观看| 色婷婷综合久久久中文一区二区| 欧美一卡在线观看| 18成人在线观看| 美女网站视频久久| 日本韩国一区二区| 久久免费电影网| 亚洲午夜久久久久久久久电影院 | 亚洲电影在线播放| 成人丝袜18视频在线观看| 欧美欧美欧美欧美首页| 国产精品―色哟哟| 麻豆精品在线看| 色久综合一二码| 久久久国产综合精品女国产盗摄| 亚洲观看高清完整版在线观看| 国产精品一卡二| 欧美一二三四区在线| 亚洲综合一二区| 豆国产96在线|亚洲| 欧美成人免费网站| 天天av天天翘天天综合网色鬼国产 | 一区二区三区欧美日| 国产在线精品一区二区三区不卡 | 精品久久久久久久久久久久久久久久久| 亚洲视频 欧洲视频| 国产成人精品午夜视频免费| 日韩精品综合一本久道在线视频| 亚洲人成网站色在线观看| 国内外成人在线| 欧美一区二区免费视频| 亚洲亚洲人成综合网络| 99热99精品| 亚洲国产精品精华液2区45| 麻豆国产精品一区二区三区 | 久久综合久久综合亚洲| 日韩影院在线观看| 欧美午夜宅男影院| 亚洲激情六月丁香| 99久久99久久免费精品蜜臀| 亚洲国产精品成人综合| 国产一区二区三区四| 欧美大肚乱孕交hd孕妇| 日本美女一区二区| 91精品一区二区三区在线观看| 亚洲国产视频网站| 欧美系列在线观看| 亚洲成人免费在线观看| 欧美亚洲综合在线| 亚洲国产欧美一区二区三区丁香婷| 一本大道久久a久久精二百| 国产精品传媒在线| 91丝袜高跟美女视频| √…a在线天堂一区| 99在线精品免费| 亚洲人成网站色在线观看| 色综合久久66| 亚洲中国最大av网站| 欧美日韩电影一区| 日本一不卡视频| 欧美成人女星排名| 国产成人av一区二区三区在线 | 日韩午夜小视频| 极品少妇xxxx偷拍精品少妇| www国产成人| 成人精品免费看| 综合中文字幕亚洲| 欧亚一区二区三区| 日韩电影免费在线观看网站| 欧美成人伊人久久综合网| 国产一二三精品| 国产精品成人一区二区三区夜夜夜| 99视频一区二区| 一区二区在线免费| 欧美一区二区三区性视频| 欧美日韩在线不卡| 丝袜美腿亚洲一区| 日韩欧美一区二区免费| 国产福利一区在线| 亚洲欧美综合另类在线卡通| 在线视频观看一区| 免费不卡在线观看| 亚洲国产精品国自产拍av| 91久久精品一区二区三| 视频一区二区国产| 久久先锋影音av鲁色资源| 91婷婷韩国欧美一区二区| 日av在线不卡| 国产精品拍天天在线| 欧美理论电影在线| 国产成人综合网| 国产很黄免费观看久久| 一区二区在线观看av| 日韩欧美美女一区二区三区| 国产成人免费视频精品含羞草妖精 | av电影天堂一区二区在线| 日韩精品色哟哟| 国产精品欧美综合在线| 欧美最猛性xxxxx直播| 91麻豆精品国产91久久久更新时间 | 久久午夜电影网| 在线观看日韩精品| 精品一二三四区| 伊人一区二区三区| 久久久久一区二区三区四区| 在线观看成人免费视频| 国产剧情一区在线| 亚洲国产婷婷综合在线精品| 欧美国产一区二区在线观看| 欧美色窝79yyyycom| 成人免费看黄yyy456| 日本不卡123| 亚洲日本免费电影| 国产亚洲欧美日韩在线一区| 欧美理论电影在线| 在线看国产一区二区| 成人福利视频在线看| 久久精品二区亚洲w码| 亚洲午夜日本在线观看|