File:  [Public] / libwww / Library / src / HTTChunk.html
Revision 2.3: download - view: text, annotated - select for diffs
Sun Feb 16 18:43:03 1997 UTC (27 years, 3 months ago) by frystyk
Branches: MAIN
CVS tags: Release-5-1l, Release-5-1k, Release-5-1j, Release-5-1g, Release-5-1e, Release-5-1d, Release-5-1b, Release-5-1a, Release-5-1, HEAD
Changed name of sample coed library

<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/pub/WWW/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.3 1997/02/16 18:43:03 frystyk Exp $
</ADDRESS>
</BODY></HTML>

Webmaster