File: HTGuess.html

package info (click to toggle)
cern-httpd 3.0A-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 5,392 kB
  • ctags: 6,554
  • sloc: ansic: 37,902; makefile: 1,746; perl: 535; csh: 167; sh: 143
file content (38 lines) | stat: -rw-r--r-- 874 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<HTML>
<HEAD>
<TITLE>HTGuess: Guess content-type from a stream</TITLE>
</HEAD>
<BODY>
<H1>Content-Type Guesser</H1>

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>

Part of <A HREF="Overview.html">libwww</A>. Implemented by <A
HREF="HTGuess.c"><CODE>HTGuess.c</CODE></A>. <P>

<PRE>
#ifndef HTGUESS_H
#define HTGUESS_H

#include "HTStream.h"
#include &lt;stdio.h&gt;
#include "HTFormat.h"

#ifdef SHORT_NAMES
#define	HTGuess_new	HTGuessN
#endif

PUBLIC HTStream * HTGuess_new PARAMS((HTRequest * req));


#endif	/* !HTGUESS_H */

</PRE>
End of file <CODE>HTGuess.h</CODE>.
</BODY>
</HTML>