Annotation of libwww/Library/src/HTXParse.html, revision 2.8
2.1 frystyk 1: <HTML>
2: <HEAD>
3: <TITLE>ExtParse: Module to get unparsed stream from libwww</TITLE>
4: <!-- Changed by: , 30-Nov-1994 -->
2.8 ! frystyk 5: <!-- Changed by: Henrik Frystyk Nielsen, 19-Nov-1995 -->
2.1 frystyk 6: </HEAD>
7: <BODY>
8:
9: <H1>ExtParse: Module to get unparsed stream from libwww</H1>
10:
11: <PRE>
12: /*
2.3 frystyk 13: ** (c) COPYRIGHT MIT 1995.
2.1 frystyk 14: ** Please first read the full copyright statement in the file COPYRIGH.
15: */
16: </PRE>
17:
18: This version of the stream object is a hook for clients that want an
19: unparsed stream from libwww. The HTExtParse_put_* and HTExtParse_write
20: routines copy the content of the incoming buffer into a buffer that is
21: realloced whenever necessary. This buffer is handed over to the client
22: in HTExtParse_free. See also <A HREF="HTFWrite.html">HTFWriter</A>
23: for writing to C files.<P>
24:
25: <H3>Bugs:</H3>
26:
27: <UL>
28: <LI>strings written must be less than buffer size.
29: </UL>
30:
2.2 frystyk 31: This module is implemented by <A HREF="HTXParse.c">HTXParse.c</A>, and
2.8 ! frystyk 32: it is a part of the <A HREF="http://www.w3.org/pub/WWW/Library/"> W3C
! 33: Reference Library</A>.
2.1 frystyk 34:
35: <PRE>
36: #ifndef HTEXTPARSE_H
37: #define HTEXTPARSE_H
38:
39: #include "HTStream.h"
2.7 frystyk 40: #include "HTReq.h"
2.1 frystyk 41:
42: typedef struct _HTExtParseStruct HTExtParseStruct;
2.5 frystyk 43:
2.8 ! frystyk 44: typedef void CallClient (HTExtParseStruct * me);
2.5 frystyk 45:
2.1 frystyk 46: struct _HTExtParseStruct {
2.5 frystyk 47: CallClient *call_client;
48: int used; /* how much of the buffer is being used*/
2.1 frystyk 49: BOOL finished; /* document loaded? */
50: int length; /* how long the buffer is */
2.5 frystyk 51: char * buffer; /* storage in until client takes over */
2.1 frystyk 52: char * content_type;
53: HTRequest * request; /* the request structure */
54: };
55:
2.8 ! frystyk 56: extern HTConverter HTExtParse;
2.1 frystyk 57:
58: #endif
2.8 ! frystyk 59: </PRE>
! 60: End of declaration
! 61: </BODY>
2.1 frystyk 62: </HTML>
Webmaster