Annotation of libwww/Library/src/HTTChunk.html, revision 2.5
2.1 frystyk 1: <HTML>
2: <HEAD>
2.3 frystyk 3: <TITLE>W3C Sample Code Library libwww Chunked Transfer Encoding and Decoding</TITLE>
2.1 frystyk 4: </HEAD>
5: <BODY>
2.2 frystyk 6: <H1>
7: Chunked Transfer Encoding and Decoding
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.2 frystyk 15: <P>
16: Chunked transfer encoding and decoding is new in HTTP/1.1. It allows applications
17: to use persistent connections while not knowing the content length a priori
18: to the response header is generated.
19: <P>
20: Both the encoder and the decoder are of type
21: <A HREF="HTFormat.html#encoding">HTCoder</A> which is defined in the
22: <A HREF="HTFormat.html">Stream Pipe Builder</A>. This means that bot the
23: encoder and the decoder are registered dynamically and called by the Stream
24: Pipe Builder if required.
25: <P>
26: <B>Note</B>: These streams are <I>not</I> set up by default. They must be
27: registered by the application. You can use the default initialization function
28: <CODE>HTEncoderInit()</CODE> function in the
29: <A HREF="WWWInit.html">initialization interface</A>.
30: <P>
31: This module is implemented by <A HREF="HTTChunk.c">HTTChunk.c</A>, and it
2.4 frystyk 32: is a part of the <A HREF="http://www.w3.org/Library/"> W3C Sample Code
2.2 frystyk 33: Library</A>.
34: <P>
2.5 ! vbancrof 35: <PRE>
! 36: #ifndef HTTCHUNK_H
2.1 frystyk 37: #define HTTCHUNK_H
38:
39: #include "HTFormat.h"
2.5 ! vbancrof 40:
! 41: #ifdef __cplusplus
! 42: extern "C" {
! 43: #endif
2.1 frystyk 44: </PRE>
45: <PRE>
2.2 frystyk 46: extern HTCoder HTChunkedDecoder, HTChunkedEncoder;
2.1 frystyk 47: </PRE>
48: <PRE>
2.5 ! vbancrof 49: #ifdef __cplusplus
! 50: }
! 51: #endif
! 52:
2.1 frystyk 53: #endif /* HTTCHUNK_H */
54: </PRE>
2.2 frystyk 55: <P>
56: <HR>
2.1 frystyk 57: <ADDRESS>
2.5 ! vbancrof 58: @(#) $Id: HTTChunk.html,v 2.4 1998/05/14 02:11:09 frystyk Exp $
2.1 frystyk 59: </ADDRESS>
2.2 frystyk 60: </BODY></HTML>
Webmaster