1 /* 2 3 W3C Sample Code Library libwww MIME and RFC822 4 5 6 ! 7 Declaration of W3C Sample Code MIME and RFC822 8 ! 9 */ 10 11 /* 12 ** (c) COPYRIGHT MIT 1995. 13 ** Please first read the full copyright statement in the file COPYRIGH. 14 */ 15 16 /* 17 18 This is the module for basic RFC822/MIME parsing that can be used together 19 with the core of the W3C Sample Code Library. It contains all MIME specific 20 modules which are required to compile and build the MIME DLL. 21 */ 22 23 #ifndef WWWMIME_H 24 #define WWWMIME_H 25 26 /* 27 */ 28 29 #ifdef __cplusplus 30 extern "C" { 31 #endif 32 33 /* 34 ( 35 System dependencies 36 ) 37 38 The wwwsys.h file includes system-specific include 39 files and flags for I/O to network and disk. The only reason for this file 40 is that the Internet world is more complicated than Posix and ANSI. 41 */ 42 43 #include "wwwsys.h" 44 45 /* 46 ( 47 MIME Entity Header Parsing 48 ) 49 50 The libwww MIME parsers are completely generic in that they don't know about 51 any particular headers - they are all registered at run-time by the application. 52 There are two parsers: the first is for parsing MIME headers and the 53 second is for parsing MIME footers. They are both converters that 54 can be set up using the HTConverterInit 55 function in the libwww setup module 56 57 There is also a default set of the headers defined by the 58 HTTP/1.1 specification 59 which can be initialized using the 60 HTMIMEInit() function in the 61 libwww setup module. 62 */ 63 #include "HTMIME.h" /* Generic MIME parser */ 64 #include "HTHeader.h" /* Header parser registration */ 65 66 /* 67 ( 68 MIME Entity Header Generation 69 ) 70 71 When sending a MIME entity along with a request, for example using NNTP or 72 HTTP, the entity headers are generated by the MIME generator stream. This 73 stream will be added to the output stream pipe in order to decorate the outgoing 74 request. 75 */ 76 #include "HTMIMERq.h" /* MIME request generator */ 77 78 /* 79 ( 80 Default MIME Header Parsers 81 ) 82 83 The Library's MIME parser is divided into two parts: A generic MIME parser 84 that knows how to unwrap all RFC822 headers and specialized header parsers 85 that knows how to parse Content-Length, for example. This is 86 the default set of the specialized MIME header parsers that can be registered 87 as part of the generic MIME. Note that these functions are not registered 88 by default - they must be registered by the application. This can be done 89 using the HTMIMEInit() function in the 90 WWWInit interface. Of course this can also be 91 used to register new headers that are not represented below - or if you want 92 to replace a default parser then this is also very easy. 93 */ 94 #include "HTMIMImp.h" 95 96 /* 97 ( 98 Multipart MIME Parsing and Generation 99 ) 100 101 Libwww supports MIME multipart generation and parsing using two streams. 102 The parser stream is a converter that can be setup for"converting" the MIME 103 body parts into separate documents. The MIME multipart stream parser can 104 be set up by using the HTConverterInit 105 function in the libwww setup module. 106 */ 107 108 #include "HTBound.h" /* Multipart MIME parser */ 109 #include "HTMulpar.h" /* Multipart MIME generator stream */ 110 111 /* 112 113 End of MIME modules 114 */ 115 116 #ifdef __cplusplus 117 } /* end extern C definitions */ 118 #endif 119 120 #endif 121 122 /* 123 124 125 126 @(#) $Id$ 127 128 */ 129