File:
[Public] /
libwww /
Library /
src /
HTGuess.html
Revision
2.18:
download - view:
text,
annotated -
select for diffs
Thu May 14 02:10:31 1998 UTC (26 years ago) by
frystyk
Branches:
MAIN
CVS tags:
repeat-requests,
before_webdav,
Release-5-4-0,
Release-5-3-1,
Release-5-2-8,
Release-5-2-6,
Release-5-2,
Release-5-1m,
HEAD,
Before-New-Trace-Messages,
Amaya_2_4,
Amaya-6-3,
Amaya-6-1,
Amaya-5-2,
Amaya-4-3-2,
Amaya-4-3-1,
Amaya-4-3,
Amaya-4-1-2,
Amaya-4-1-0,
Amaya-4-0-0,
Amaya-3-2-1,
Amaya-3-2,
Amaya
Changing old pub/WWW links
<HTML>
<HEAD>
<!-- Changed by: Henrik Frystyk Nielsen, 23-Mar-1996 -->
<TITLE>W3C Sample Code Library libwww Content-Type Guessing Stream</TITLE>
</HEAD>
<BODY>
<H1>
Content-Type Guessing Stream
</H1>
<PRE>
/*
** (c) COPYRIGHT MIT 1995.
** Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>
<P>
This interface provides functionality for guessing unknown media types from
magic words. The 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/Library/"> W3C Sample Code
Library</A>.
<PRE>
#ifndef HTGUESS_H
#define HTGUESS_H
#include "HTStream.h"
#include "HTFormat.h"
extern HTConverter HTGuess_new;
#endif /* !HTGUESS_H */
</PRE>
<P>
<HR>
<ADDRESS>
@(#) $Id: HTGuess.html,v 2.18 1998/05/14 02:10:31 frystyk Exp $
</ADDRESS>
</BODY></HTML>
Webmaster