Annotation of libwww/Library/src/HTBInit.html, revision 2.8
2.1 frystyk 1: <HTML>
2: <HEAD>
2.6 frystyk 3: <TITLE>W3C Sample Code Library libwww Media Type Initialization</TITLE>
2.1 frystyk 4: </HEAD>
5: <BODY>
2.5 frystyk 6: <H1>
7: Default Media Type Initialization Module
8: </H1>
2.1 frystyk 9: <PRE>
10: /*
11: ** (c) COPYRIGHT MIT 1995.
12: ** Please first read the full copyright statement in the file COPYRIGH.
13: */
14: </PRE>
2.5 frystyk 15: <P>
16: As mentioned in the <A HREF="../User/Architecture/">Library Architecture</A>,
17: libwww consists of a small core and a large set of hooks for adding
18: functionality. By itself, the core it not capable of performing any Web related
19: tasks like accessing a HTTP server or parsing a HTML document. All this
20: functionality must be registered by the application. This way, the core of
21: libwww is kept application independent and can be used as the basic building
22: block for any kind of Web application. The Library comes with a large set
23: of default functions, for example for accessing HTTP and FTP servers, parsing
24: <A HREF="http://info.internet.isi.edu:80/in-notes/rfc/files/rfc822.txt">RFC
25: 822</A> headers etc. This module helps the application programmer setting
26: up all this functionality, but it is important to note that none of it is
27: <I>required</I> in order to use the Library.
28: <P>
29: This module is implemented by <A HREF="HTBInit.c">HTBInit.c</A>, and it is
2.7 frystyk 30: a part of the <A HREF="http://www.w3.org/Library/">W3C Sample Code
2.5 frystyk 31: Library</A>. You can also have a look at the other
32: <A HREF="WWWInit.html">Initialization modules</A>.
2.1 frystyk 33: <PRE>
34: #ifndef HTBINIT_H
35: #define HTBINIT_H
2.8 ! vbancrof 36:
! 37: #ifdef __cplusplus
! 38: extern "C" {
! 39: #endif
! 40:
2.1 frystyk 41: </PRE>
2.5 frystyk 42: <H2>
43: Default File Suffix Binding
44: </H2>
45: <P>
46: Register the default set of bindings between file suffixes and media types.
47: This is used for example to guess the media type of a FTP URL of a local
48: file URL.
49: <PRE>
50: #include "WWWCore.h"
2.1 frystyk 51:
52: extern void HTFileInit (void);
53: </PRE>
54: <PRE>
2.8 ! vbancrof 55: #ifdef __cplusplus
! 56: }
! 57: #endif
! 58:
2.1 frystyk 59: #endif
60: </PRE>
2.5 frystyk 61: <P>
62: <HR>
2.3 frystyk 63: <ADDRESS>
2.8 ! vbancrof 64: @(#) $Id: HTBInit.html,v 2.7 1998/05/14 02:10:16 frystyk Exp $
2.3 frystyk 65: </ADDRESS>
2.5 frystyk 66: </BODY></HTML>
Webmaster