httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/include http_protocol.h
Date Sun, 02 Dec 2001 23:13:32 GMT
brianp      01/12/02 15:13:32

  Modified:    include  http_protocol.h
  Log:
  Added a version of ap_getline() that allocs a buffer from
  the request's pool, rather than copying into a caller-supplied
  buffer.  (This lets us eliminate one copy operation on the
  request headers.)
  
  Revision  Changes    Path
  1.67      +26 -0     httpd-2.0/include/http_protocol.h
  
  Index: http_protocol.h
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/include/http_protocol.h,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- http_protocol.h	2001/11/07 05:41:22	1.66
  +++ http_protocol.h	2001/12/02 23:13:32	1.67
  @@ -526,7 +526,33 @@
    */
   AP_CORE_DECLARE(void) ap_parse_uri(request_rec *r, const char *uri);
   
  +/**
  + * Get the next line of input for the request
  + * @param s The buffer into which to read the line
  + * @param n The size of the buffer
  + * @param r The request
  + * @param fold Whether to merge continuation lines
  + * @return The length of the line, if successful
  + *         n, if the line is too big to fit in the buffer
  + *         -1 for miscellaneous errors
  + * @deffunc int ap_method_number_of(const char *method)
  + */
   AP_DECLARE(int) ap_getline(char *s, int n, request_rec *r, int fold);
  +
  +/**
  + * Get the next line of input for the request
  + * @param s Pointer to the pointer to the buffer into which the line
  + *          should be read; if *s==NULL, a buffer of the necessary size
  + *          to hold the data will be allocated from the request pool
  + * @param n The size of the buffer
  + * @param r The request
  + * @param fold Whether to merge continuation lines
  + * @return The length of the line, if successful
  + *         n, if the line is too big to fit in the buffer
  + *         -1 for miscellaneous errors
  + * @deffunc int ap_method_number_of(const char *method)
  + */
  +AP_DECLARE(int) ap_rgetline(char **s, int n, request_rec *r, int fold);
   
   /**
    * Get the method number associated with the given string, assumed to
  
  
  

Mime
View raw message