HTConLen.h
上传用户:zlh9724
上传日期:2007-01-04
资源大小:1991k
文件大小:1k
源码类别:

浏览器

开发平台:

Unix_Linux

  1. /*                                                                     Content Counter Stream
  2.                                   CONTENT COUNTER STREAM
  3.                                              
  4.  */
  5. /*
  6. **      (c) COPYRIGHT MIT 1995.
  7. **      Please first read the full copyright statement in the file COPYRIGH.
  8. */
  9. /*
  10.    This stream also buffers the result to find out the content length. If a maximum buffer
  11.    limit is reached Content-Length is calculated for logs but it is not sent to the client
  12.    -- rather the buffer is flushed right away. Code taken from HTRequest.c written by Ari
  13.    Luotonen and modified to fit new stream model. The buffer stream is a small buffer that
  14.    can be used to optimize net work access in order to prevent multiple writes.
  15.    
  16.    This module is implemented by HTNetTxt.c, and it is a part of the  W3C Reference
  17.    Library.
  18.    
  19.  */
  20. #ifndef HTCONLEN_H
  21. #define HTCONLEN_H
  22. extern HTStream * HTContentCounter      (HTStream *     target,
  23.                                          HTRequest *    request,
  24.                                          int            max_size);
  25. extern HTStream * HTBuffer_new          (HTStream *     target,
  26.                                          HTRequest *    request,
  27.                                         int             max_size);
  28. /*
  29.    End of definition module
  30.    
  31.  */
  32. #endif /* HTCONLEN_H */
  33. /*
  34.     */