File:  [Public] / libwww / Library / src / HTTChunk.html
Revision 2.4: download - view: text, annotated - select for diffs
Thu May 14 02:11:09 1998 UTC (26 years ago) by frystyk
Branches: MAIN
CVS tags: repeat-requests, before_webdav, Release-5-4-0, Release-5-3-1, Release-5-2-8, Release-5-2-6, Release-5-2, Release-5-1m, HEAD, Before-New-Trace-Messages, Amaya_2_4, Amaya-6-3, Amaya-6-1, Amaya-5-2, Amaya-4-3-2, Amaya-4-3-1, Amaya-4-3, Amaya-4-1-2, Amaya-4-1-0, Amaya-4-0-0, Amaya-3-2-1, Amaya-3-2, Amaya
Changing old pub/WWW links

<HTML>
<HEAD>
  <TITLE>W3C Sample Code Library libwww Chunked Transfer Encoding and Decoding</TITLE>
</HEAD>
<BODY>
<H1>
  Chunked Transfer Encoding and Decoding
</H1>
<PRE>
/*
**	(c) COPYRIGHT MIT 1995.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>
<P>
Chunked transfer encoding and decoding is new in HTTP/1.1. It allows applications
to use persistent connections while not knowing the content length a priori
to the response header is generated.
<P>
Both the encoder and the decoder are of type
<A HREF="HTFormat.html#encoding">HTCoder</A> which is defined in the
<A HREF="HTFormat.html">Stream Pipe Builder</A>. This means that bot the
encoder and the decoder are registered dynamically and called by the Stream
Pipe Builder if required.
<P>
<B>Note</B>: These streams are <I>not</I> set up by default. They must be
registered by the application. You can use the default initialization function
<CODE>HTEncoderInit()</CODE> function in the
<A HREF="WWWInit.html">initialization interface</A>.
<P>
This module is implemented by <A HREF="HTTChunk.c">HTTChunk.c</A>, and it
is a part of the <A HREF="http://www.w3.org/Library/"> W3C Sample Code
Library</A>.
<P>
<PRE>#ifndef HTTCHUNK_H
#define HTTCHUNK_H

#include "HTFormat.h"
</PRE>
<PRE>
extern HTCoder HTChunkedDecoder, HTChunkedEncoder;
</PRE>
<PRE>
#endif /* HTTCHUNK_H */
</PRE>
<P>
  <HR>
<ADDRESS>
  @(#) $Id: HTTChunk.html,v 2.4 1998/05/14 02:11:09 frystyk Exp $
</ADDRESS>
</BODY></HTML>

Webmaster