<HTML>
<HEAD>
<TITLE>HTGuess: Guess content-type from a stream</TITLE>
</HEAD>
<BODY>
<H1>Content-Type Guesser</H1>
<PRE>
/*
** (c) COPYRIGHT MIT 1995.
** Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>
This stream is a one that reads first a chunk of stuff, tries to
figure out the format, and calls <CODE>HTStreamStack()</CODE>. This
is a kind of lazy-evaluation of <CODE>HTStreamStack()</CODE>. <P>
This could be extended arbitrarily to recognize all the possible
file formats in the world, if someone only had time to do it. <P>
This module is implemented by <A HREF="HTGuess.c">HTGuess.c</A>, and
it is a part of the <A
HREF="http://www.w3.org/hypertext/WWW/Library/User/Guide/Guide.html">
Library of Common Code</A>.
<PRE>
#ifndef HTGUESS_H
#define HTGUESS_H
#include "HTStream.h"
#include "HTFormat.h"
extern HTStream * HTGuess_new PARAMS((HTRequest * req,
void * param,
HTFormat input_format,
HTFormat output_format,
HTStream * output_stream));
#endif /* !HTGUESS_H */
</PRE>
End of file <CODE>HTGuess.h</CODE>.
</BODY>
</HTML>
Webmaster