Annotation of libwww/Library/src/HTGuess.html, revision 2.6
2.1 luotonen 1: <HTML>
2: <HEAD>
3: <TITLE>HTGuess: Guess content-type from a stream</TITLE>
4: </HEAD>
5: <BODY>
2.4 frystyk 6:
2.1 luotonen 7: <H1>Content-Type Guesser</H1>
8:
2.4 frystyk 9: <PRE>
10: /*
11: ** (c) COPYRIGHT CERN 1994.
12: ** Please first read the full copyright statement in the file COPYRIGH.
13: */
14: </PRE>
15:
2.1 luotonen 16: This stream is a one that reads first a chunk of stuff, tries to
17: figure out the format, and calls <CODE>HTStreamStack()</CODE>. This
18: is a kind of lazy-evaluation of <CODE>HTStreamStack()</CODE>. <P>
19:
20: This could be extended arbitrarily to recognize all the possible
21: file formats in the world, if someone only had time to do it. <P>
22:
2.4 frystyk 23: This module is implemented by <A HREF="HTGuess.c">HTGuess.c</A>, and
24: it is a part of the <A
25: HREF="http://info.cern.ch/hypertext/WWW/Library/User/Guide/Guide.html">
26: Library of Common Code</A>.
2.1 luotonen 27:
28: <PRE>
29: #ifndef HTGUESS_H
30: #define HTGUESS_H
31:
32: #include "HTStream.h"
33: #include "HTFormat.h"
34:
35: #ifdef SHORT_NAMES
36: #define HTGuess_new HTGuessN
37: #endif
38:
2.3 frystyk 39: extern HTStream * HTGuess_new PARAMS((HTRequest * req,
2.2 frystyk 40: void * param,
41: HTFormat input_format,
42: HTFormat output_format,
43: HTStream * output_stream));
2.1 luotonen 44:
45:
46: #endif /* !HTGUESS_H */
47:
48: </PRE>
49: End of file <CODE>HTGuess.h</CODE>.
50: </BODY>
51: </HTML>
Webmaster