Annotation of libwww/Library/src/HTGuess.html, revision 2.4
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 <stdio.h>
34: #include "HTFormat.h"
35:
36: #ifdef SHORT_NAMES
37: #define HTGuess_new HTGuessN
38: #endif
39:
2.3 frystyk 40: extern HTStream * HTGuess_new PARAMS((HTRequest * req,
2.2 frystyk 41: void * param,
42: HTFormat input_format,
43: HTFormat output_format,
44: HTStream * output_stream));
2.1 luotonen 45:
46:
47: #endif /* !HTGUESS_H */
48:
49: </PRE>
50: End of file <CODE>HTGuess.h</CODE>.
51: </BODY>
52: </HTML>
Webmaster