/*                                   W3C Sample Code Library libwww Stream to Chunk Converter
                                STREAM TO CHUNK CONVERTER
                                             
 */
/*
**      (c) COPYRIGHT MIT 1995.
**      Please first read the full copyright statement in the file COPYRIGH.
*/
/*

   This stream converts a Stream obejct into a Chunk object. Chunks are dynamic streams so
   this is in other words a conversion from a stream based model to a dynamic data buffer
   model for handling a downloaded object. It is for the caller of this stream to free the
   chunk.
   
   If max_size is 0 then we use a default size, if -1 then there is no limit.
   
   This module is implemented by HTSChunk.c, and it is a part of the W3C Sample Code
   Library.
   
 */
#ifndef HTSCHUNK_H
#define HTSCHUNK_H

#include "HTChunk.h"
#include "HTStream.h"

extern HTStream * HTStreamToChunk (HTRequest *  request,
                                   HTChunk **   chunk,
                                   int          max_size);
/*

   End of definition module
   
 */
#endif /* HTSCHUNK_H */
/*

   
   ___________________________________
   
                           @(#) $Id: HTSChunk.html,v 2.3 1998/02/27 18:35:53 frystyk Exp $
                                                                                          
   */
