Annotation of libwww/Library/src/HTGuess.html, revision 2.1
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:
! 30: PUBLIC HTStream * HTGuess_new PARAMS((HTRequest * req));
! 31:
! 32:
! 33: #endif /* !HTGUESS_H */
! 34:
! 35: </PRE>
! 36: End of file <CODE>HTGuess.h</CODE>.
! 37: </BODY>
! 38: </HTML>
Webmaster