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