/[Apache-SVN]/httpd/httpd/trunk/include/http_protocol.h
ViewVC logotype

Log of /httpd/httpd/trunk/include/http_protocol.h

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 739382 - (view) (annotate) - [select for diffs]
Modified Fri Jan 30 19:12:51 2009 UTC (9 months, 3 weeks ago) by fielding
File length: 23771 byte(s)
Diff to previous 647263 (colored)
Disabled DefaultType directive and removed ap_default_type()
from core.  We now exclude Content-Type from responses for which
a media type has not been configured via mime.types, AddType,
ForceType, or some other mechanism.  MMN major bump to NZ time.

PR: 13986


Revision 647263 - (view) (annotate) - [select for diffs]
Modified Fri Apr 11 18:41:53 2008 UTC (19 months, 2 weeks ago) by minfrin
File length: 23760 byte(s)
Diff to previous 646281 (colored)
Move the KeptBodySize directive, kept_body filters and the
ap_parse_request_body function out of the http module and into a
new module called mod_request, reducing the size of the core.

Revision 646281 - (view) (annotate) - [select for diffs]
Modified Wed Apr 9 11:39:58 2008 UTC (19 months, 2 weeks ago) by minfrin
File length: 25647 byte(s)
Diff to previous 645412 (colored)
Add a function to the http filters that is able to parse an HTML
form request with the type of application/x-www-form-urlencoded.

Revision 645412 - (view) (annotate) - [select for diffs]
Modified Mon Apr 7 08:44:14 2008 UTC (19 months, 2 weeks ago) by pquerna
File length: 23840 byte(s)
Diff to previous 645165 (colored)
Remove CORE_PRIVATE.

This define serves no modern purpose, since every module in the wild, including 
our own define it, for no purpose.

If you have functions which you do not want in the 'public' API, put them
in a private header, that is not installed, just like mod_ssl does.

Revision 645165 - (view) (annotate) - [select for diffs]
Modified Sat Apr 5 19:40:22 2008 UTC (19 months, 2 weeks ago) by wrowe
File length: 23886 byte(s)
Diff to previous 588806 (colored)
In hopes of replacing <Limit > with <Method > - choose another example
to point to for documenting these functions.

Revision 588806 - (view) (annotate) - [select for diffs]
Modified Fri Oct 26 23:56:06 2007 UTC (2 years ago) by niq
File length: 23894 byte(s)
Diff to previous 582630 (colored)
Add option not to send&clear response headers in ap_send_interim_response.
We'll need this option to fix PR#43711, and ap_send_interim_response
is fortunately too new an API to have made it into anything stable.

Revision 582630 - (view) (annotate) - [select for diffs]
Modified Sun Oct 7 13:41:50 2007 UTC (2 years, 1 month ago) by niq
File length: 23805 byte(s)
Diff to previous 420983 (colored)
Introduce ap_send_interim_response function and API, for interim
(HTTP 1xx) responses sent by an application or backend.

Revision 420983 - (view) (annotate) - [select for diffs]
Modified Tue Jul 11 20:33:53 2006 UTC (3 years, 4 months ago) by fielding
File length: 23661 byte(s)
Diff to previous 395228 (colored)
update license header text

Revision 395228 - (view) (annotate) - [select for diffs]
Modified Wed Apr 19 12:11:27 2006 UTC (3 years, 7 months ago) by colm
File length: 23514 byte(s)
Diff to previous 263931 (colored)
Update the copyright year in all .c, .h and .xml files

Revision 263931 - (view) (annotate) - [select for diffs]
Modified Sun Aug 28 23:03:59 2005 UTC (4 years, 2 months ago) by ianh
File length: 23514 byte(s)
Diff to previous 164536 (colored)
Doxygen fixup / cleanup

submited by: Neale Ranns neale ranns.org
reviewed by: Ian Holsman


Revision 164536 - (view) (annotate) - [select for diffs]
Modified Mon Apr 25 05:19:18 2005 UTC (4 years, 7 months ago) by pquerna
File length: 25923 byte(s)
Diff to previous 151408 (colored)
Remove ap_method_list_do and ap_method_list_vdo as previously mentioned dev@httpd.

Revision 151408 - (view) (annotate) - [select for diffs]
Modified Fri Feb 4 20:28:49 2005 UTC (4 years, 9 months ago) by jerenkrantz
File length: 26271 byte(s)
Diff to previous 123882 (colored)
Update copyright year to 2005 and standardize on current copyright owner line.

Revision 123882 - (view) (annotate) - [select for diffs]
Modified Sun Jan 2 05:33:44 2005 UTC (4 years, 10 months ago) by wrowe
File length: 26235 byte(s)
Diff to previous 106103 (colored)
  FINALLY Correct ap_http_method()!  It is NOT a method, it's a SCHEME!

  Bumped mmn, and ap module cookie, for this function rename.

  It's not a deprecation, as ap_http_method would be a lovely function
  name sometime in the future: to determine what the function name implies.

Revision 106103 - (view) (annotate) - [select for diffs]
Modified Sun Nov 21 18:50:36 2004 UTC (5 years ago) by nd
File length: 26236 byte(s)
Diff to previous 105572 (colored)
general property cleanup

Revision 105572 - (view) (annotate) - [select for diffs]
Modified Sat Oct 23 22:39:53 2004 UTC (5 years, 1 month ago) by fielding
File length: 26236 byte(s)
Diff to previous 105545 (colored)
veto and revert win64 patch: 64bit changes must percolate from the
bottom (APR/system) up -- we can't give the client a 64bit API and
then cast it to 32bits internally without introducing security holes
on other platforms.

Revision 105545 - (view) (annotate) - [select for diffs]
Modified Fri Oct 22 15:22:05 2004 UTC (5 years, 1 month ago) by ake
File length: 26314 byte(s)
Diff to previous 104326 (colored)
WIN64: API changes to clean up Windows 64bit compile warnings

Revision 104326 - (view) (annotate) - [select for diffs]
Modified Sun Jul 18 20:06:38 2004 UTC (5 years, 4 months ago) by stas
File length: 26236 byte(s)
Diff to previous 103480 (colored)
fix the invalid return value entry for ap_meets_conditions
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 103480 - (view) (annotate) - [select for diffs]
Modified Thu Apr 22 20:44:32 2004 UTC (5 years, 7 months ago) by nd
File length: 26203 byte(s)
Diff to previous 102619 (colored)
declare the prototypes as well.

PR: 28523 again

Revision 102619 - (view) (annotate) - [select for diffs]
Modified Mon Feb 9 20:40:53 2004 UTC (5 years, 9 months ago) by nd
File length: 26179 byte(s)
Diff to previous 102548 (colored)
fix name of The Apache Software Foundation

Revision 102548 - (view) (annotate) - [select for diffs]
Modified Sat Feb 7 19:27:57 2004 UTC (5 years, 9 months ago) by nd
File length: 26175 byte(s)
Diff to previous 102525 (colored)
fix copyright dates according to the first check in

Revision 102525 - (view) (annotate) - [select for diffs]
Modified Fri Feb 6 22:58:42 2004 UTC (5 years, 9 months ago) by nd
File length: 26175 byte(s)
Diff to previous 102415 (colored)
apply Apache License, Version 2.0

Revision 102415 - (view) (annotate) - [select for diffs]
Modified Mon Jan 26 22:08:06 2004 UTC (5 years, 10 months ago) by trawick
File length: 28394 byte(s)
Diff to previous 102135 (colored)
fix out-of-date comment

Submitted by:	Aryeh Katz
Reviewed by:	Jeff Trawick

Revision 102135 - (view) (annotate) - [select for diffs]
Modified Thu Jan 1 13:26:26 2004 UTC (5 years, 10 months ago) by nd
File length: 28406 byte(s)
Diff to previous 102038 (colored)
update license to 2004.

Revision 102038 - (view) (annotate) - [select for diffs]
Modified Fri Dec 12 17:03:59 2003 UTC (5 years, 11 months ago) by rederpj
File length: 28406 byte(s)
Diff to previous 98573 (colored)

  *) Add a hook (insert_error_filter) to allow filters to re-insert
     themselves during processing of error responses. Enable mod_expires
     to use the new hook to include Expires headers in valid error
     responses. This addresses an RFC violation. It fixes PRs 19794,
     24884, and 25123. [Paul J. Reder]

Revision 98573 - (view) (annotate) - [select for diffs]
Modified Mon Feb 3 17:53:28 2003 UTC (6 years, 9 months ago) by nd
File length: 28211 byte(s)
Diff to previous 96018 (colored)
finished that boring job:
update license to 2003.

Happy New Year! ;-))

Revision 96018 - (view) (annotate) - [select for diffs]
Modified Thu Jul 11 19:53:04 2002 UTC (7 years, 4 months ago) by wrowe
File length: 28211 byte(s)
Diff to previous 95956 (colored)
  Fix comments

Revision 95956 - (view) (annotate) - [select for diffs]
Modified Thu Jul 4 17:05:25 2002 UTC (7 years, 4 months ago) by brianp
File length: 28215 byte(s)
Diff to previous 95421 (colored)
Re-use the same temp brigade to read all lines of a request header,
to avoid the overhead of brigade creation and deletion.  (This produced
a 5% reduction in the total CPU usage of a minimalist httpd configuration:
<JHEPKCEMGPKFFDHHDDKDMELFEKAA.bill@wstoddard.com>)

Revision 95421 - (view) (annotate) - [select for diffs]
Modified Fri May 31 05:03:09 2002 UTC (7 years, 5 months ago) by jwoolley
File length: 27721 byte(s)
Diff to previous 95410 (colored)
fix some major badness: error buckets *cannot* use simple_copy because
they're not simple buckets.  they have a private data structure which
gets freed.  if you're going to copy them and share whatever ->data points
to (which is what simple_copy does), you have to refcount the structure,
which is the whole point of apr_bucket_refcount and apr_bucket_shared_copy.

Revision 95410 - (view) (annotate) - [select for diffs]
Modified Thu May 30 21:08:21 2002 UTC (7 years, 5 months ago) by jerenkrantz
File length: 27640 byte(s)
Diff to previous 95031 (colored)
Add macro to check for an error bucket.  (Can't call it APR_BUCKET_IS_ERROR
since error bucket is private to httpd - hence the AP_ prefix.)

Revision 95031 - (view) (annotate) - [select for diffs]
Modified Fri May 10 15:08:59 2002 UTC (7 years, 6 months ago) by brianp
File length: 27455 byte(s)
Diff to previous 94711 (colored)
Moved ap_setup_make_content_type() declaration to http_protocol.h

Revision 94711 - (view) (annotate) - [select for diffs]
Modified Fri Apr 19 16:04:24 2002 UTC (7 years, 7 months ago) by trawick
File length: 27120 byte(s)
Diff to previous 94708 (colored)
fix a spelling error in a comment

Submitted by:	Stas Bekman
Reviewed by:	Jeff Trawick

Revision 94708 - (view) (annotate) - [select for diffs]
Modified Fri Apr 19 11:33:29 2002 UTC (7 years, 7 months ago) by trawick
File length: 27120 byte(s)
Diff to previous 94667 (colored)
fix a typo in a comment for ap_get_client_block()

Submitted by:	Stas Bekman
Reviewed by:	Jeff Trawick

Revision 94667 - (view) (annotate) - [select for diffs]
Modified Tue Apr 16 05:43:09 2002 UTC (7 years, 7 months ago) by jerenkrantz
File length: 27120 byte(s)
Diff to previous 94304 (colored)
Adds support for reading trailers on input by exporting get_mime_headers
to ap_get_mime_headers and calling it in the appropriate place in
ap_http_filter.

showstoppers--;

Revision 94304 - (view) (annotate) - [select for diffs]
Modified Fri Mar 29 08:17:26 2002 UTC (7 years, 7 months ago) by jwoolley
File length: 27003 byte(s)
Diff to previous 94057 (colored)
BUCKET FREELISTS

Add an allocator-passing mechanism throughout the bucket brigades API.

From Apache's standpoint, the apr_bucket_alloc_t* used throughout a given
connection is stored in the conn_rec by the create_connection hook.  That
means it's the MPM's job to optimize recycling of apr_bucket_alloc_t's --
the MPM must ensure that no two threads can ever use the same one at the
same time, for instance.

Revision 94057 - (view) (annotate) - [select for diffs]
Modified Wed Mar 20 17:44:13 2002 UTC (7 years, 8 months ago) by stoddard
File length: 26784 byte(s)
Diff to previous 94051 (colored)
Commit 2 of 2 to:
1. rename ap_rset_content_type to ap_set_content_type
2. reverse the arguments to aligh with ap_set_content_length

Revision 94051 - (view) (annotate) - [select for diffs]
Modified Wed Mar 20 12:03:49 2002 UTC (7 years, 8 months ago) by trawick
File length: 26453 byte(s)
Diff to previous 94028 (colored)
ap_rset_content_type() should take const char * instead of char *
this is friendlier to callers and r->content_type is const char *
too so it isn't harmful

this fixes a fatal compile error with AIX+xlc

Revision 94028 - (view) (annotate) - [select for diffs]
Modified Wed Mar 20 02:05:43 2002 UTC (7 years, 8 months ago) by stoddard
File length: 26447 byte(s)
Diff to previous 94015 (colored)
Final commit to add ap_rset_content_type accessor. Add AddOutputFiltersbyType
filters during call to ap_rset_content_type()

Revision 94015 - (view) (annotate) - [select for diffs]
Modified Tue Mar 19 10:11:33 2002 UTC (7 years, 8 months ago) by gstein
File length: 26369 byte(s)
Diff to previous 93918 (colored)
The underlying change here was to add the new WebDAV/DeltaV methods
now that it has an RFC. At the same time, I revamped a good chunk of
the name <-> number mapping code in http_protocol.c

* add M_FOO constants for the new RFC 3253 (DeltaV) methods. label
  where each of the builtin methods comes from.

* moved METHOD_NUMBER_FIRST/LAST from http_protocol.h into
  http_protocol.c since they weren't used anywhere else and they
  weren't namespace-protected.

* create register_one_method() and use it to insert all builtin
  methods (at _init() time) and extended methods into the registry.

* add a lookup_builtin_method() to quickly map a method name to a
  builtin method number.

* rebuild ap_method_number_of() to use the new lookup function.

* revamp ap_method_name_of() to use the registry to locate the name
  for any method number. add a pool argument (no callers in the core
  code needed to be updated)

* revamp make_allow() to deal with the new method numbers and all
  extended methods.

* in mod_dav, use the new method numbers rather than registering the
  DeltaV methods.

Revision 93918 - (view) (annotate) - [select for diffs]
Modified Wed Mar 13 20:48:07 2002 UTC (7 years, 8 months ago) by fielding
File length: 26808 byte(s)
Diff to previous 93776 (colored)
Update our copyright for this year.

Revision 93776 - (view) (annotate) - [select for diffs]
Modified Thu Mar 7 22:08:46 2002 UTC (7 years, 8 months ago) by gregames
File length: 26808 byte(s)
Diff to previous 93011 (colored)
ap_rgetline: fix folding and partial line handling on ebcdic boxes.  The
normal case worked OK, but due to the recursion and multiple exit points,
input bytes could go thru charset translation multiple times or not at all.

Suggested by: Justin Erenkrantz

Revision 93011 - (view) (annotate) - [select for diffs]
Modified Thu Jan 24 23:59:51 2002 UTC (7 years, 10 months ago) by jerenkrantz
File length: 26108 byte(s)
Diff to previous 92290 (colored)
Rewrite ap_rgetline to remove the need to have an "internal" brigade stored
in the core_module structure by using the AP_MODE_SPECULATIVE filter mode
to determine if MIME-continuation should occur.

Notes:
- ap_rgetline has a new prototype.
- ap_rgetline returns APR_ENOSPC when we are out of buffer space.

All direct callers of ap_rgetline are now adjusted to handle this new API.
ap_getline will mimic the old API for now.

Reviewed by:	Ryan Morgan

Revision 92290 - (view) (annotate) - [select for diffs]
Modified Sun Dec 2 23:13:32 2001 UTC (7 years, 11 months ago) by brianp
File length: 26053 byte(s)
Diff to previous 91778 (colored)
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 91778 - (view) (annotate) - [select for diffs]
Modified Wed Nov 7 05:41:22 2001 UTC (8 years ago) by dougm
File length: 24987 byte(s)
Diff to previous 91176 (colored)
ap_getline() is useful to modules outside of the core..
change declaration from AP_CORE_DECLARE to AP_DECLARE so it can be used
used outside the core
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 91176 - (view) (annotate) - [select for diffs]
Modified Fri Sep 28 13:48:43 2001 UTC (8 years, 1 month ago) by rbb
File length: 24992 byte(s)
Diff to previous 91006 (colored)
Remove SMS from the error bucket.  SMS is going away now, it isn't really
used anyplace anymore.
Submitted by:	"Sander Striker" <striker@apache.org>

Revision 91006 - (view) (annotate) - [select for diffs]
Modified Tue Sep 11 18:38:21 2001 UTC (8 years, 2 months ago) by rbb
File length: 25071 byte(s)
Diff to previous 90664 (colored)
A very small optimization to the OLD_WRITE logic.  This just makes us store
a pointer to the OLD_WRITE frec, and instead of using strcmp or strcasecmp,
we can just do a simple pointer comparison.  This optimization is also
available to other modules.

Revision 90664 - (view) (annotate) - [select for diffs]
Modified Sat Aug 25 22:56:22 2001 UTC (8 years, 3 months ago) by jwoolley
File length: 24869 byte(s)
Diff to previous 90090 (colored)
BUCKETS SMS PHASE 1

Update to match apr-util

Revision 90090 - (view) (annotate) - [select for diffs]
Modified Sat Aug 11 04:04:13 2001 UTC (8 years, 3 months ago) by rbb
File length: 24790 byte(s)
Diff to previous 89869 (colored)
Fix the new method code.  We need to cast 1 to an apr_int64_t or it will
be treated as a 32-bit integer, and it will wrap after being shifted
32 times.
Submitted by:	Cody Sherr <csherr@covalent.net> and
		Ryan Morgan <rmorgan@covalent.net>

Revision 89869 - (view) (annotate) - [select for diffs]
Modified Thu Aug 2 04:25:20 2001 UTC (8 years, 3 months ago) by rbb
File length: 24766 byte(s)
Diff to previous 89749 (colored)
Add the ability to extend the methods that Apache understands
and have those methods <limit>able in the httpd.conf. It uses
the same bit mask/shifted offset as the original HTTP methods
such as M_GET or M_POST, but expands the total bits from an int to
an ap_int64_t to handle more bits for new request methods than
an int provides.
Submitted by:	Cody Sherr <csherr@covalent.net>

Revision 89749 - (view) (annotate) - [select for diffs]
Modified Fri Jul 27 21:01:16 2001 UTC (8 years, 4 months ago) by wrowe
File length: 23606 byte(s)
Diff to previous 89727 (colored)
  Doc formatting fixes

Revision 89727 - (view) (annotate) - [select for diffs]
Modified Thu Jul 26 15:53:15 2001 UTC (8 years, 4 months ago) by wrowe
File length: 23606 byte(s)
Diff to previous 88372 (colored)
  Change the length of the content args to apr_off_t identifiers, and fix
  mod_negotation to treat a size of -1 and indeterminate, instead of 0.

Revision 88372 - (view) (annotate) - [select for diffs]
Modified Tue Feb 27 21:02:15 2001 UTC (8 years, 8 months ago) by jwoolley
File length: 23592 byte(s)
Diff to previous 88341 (colored)
Update to reflect the absence of the apr_bucket_shared
struct and the newly-added start field of the apr_bucket struct

Revision 88341 - (view) (annotate) - [select for diffs]
Modified Mon Feb 26 04:38:22 2001 UTC (8 years, 9 months ago) by rbb
File length: 23593 byte(s)
Diff to previous 88226 (colored)
Begin to move functions from the http module to the core.  The goal is to
have only functions that are HTTP specific in the http directory.

Revision 88226 - (view) (annotate) - [select for diffs]
Modified Sun Feb 18 03:18:35 2001 UTC (8 years, 9 months ago) by gstein
File length: 22954 byte(s)
Diff to previous 88225 (colored)
shift some declarations over to mod_core.h where they're totally private.

Revision 88225 - (view) (annotate) - [select for diffs]
Modified Sun Feb 18 02:58:53 2001 UTC (8 years, 9 months ago) by gstein
File length: 23365 byte(s)
Diff to previous 88184 (colored)
*) Introduce "ap_conf_vector_t" type to assist with legibility and provide
   some type safety. (unfortunately, our old "void*" is type-safe with the
   new one, but over time we should be better)

*) Propagate the new type to all appropriate functions.

*) Random cleaning, whitespace, stylistic nits.

Revision 88184 - (view) (annotate) - [select for diffs]
Modified Fri Feb 16 04:26:53 2001 UTC (8 years, 9 months ago) by fielding
File length: 23349 byte(s)
Diff to previous 88142 (colored)
Update copyright to 2001

Revision 88142 - (view) (annotate) - [select for diffs]
Modified Tue Feb 13 20:24:38 2001 UTC (8 years, 9 months ago) by dougm
File length: 23344 byte(s)
Diff to previous 88029 (colored)
rename:
ap_bucket_create_error -> ap_bucket_error_create
ap_bucket_make_error   -> ap_bucket_error_make
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 88029 - (view) (annotate) - [select for diffs]
Modified Fri Feb 9 07:17:53 2001 UTC (8 years, 9 months ago) by rbb
File length: 23344 byte(s)
Diff to previous 87979 (colored)
Make the header filter use the brigade buffering functions for creating
the header string.  This allows us to clean up the header handling a bit,
because we don't need to compute the correct length before we can create
the headers.

Revision 87979 - (view) (annotate) - [select for diffs]
Modified Mon Feb 5 03:31:43 2001 UTC (8 years, 9 months ago) by dougm
File length: 23318 byte(s)
Diff to previous 87970 (colored)
s/l/r/ in ap_send_http_header protototype

Revision 87970 - (view) (annotate) - [select for diffs]
Modified Sun Feb 4 03:00:15 2001 UTC (8 years, 9 months ago) by dougm
File length: 23318 byte(s)
Diff to previous 87869 (colored)
fix minor prototype inconsistencies noticed with C::Scan

Revision 87869 - (view) (annotate) - [select for diffs]
Modified Sat Jan 27 17:59:02 2001 UTC (8 years, 9 months ago) by rbb
File length: 23314 byte(s)
Diff to previous 87864 (colored)
Forgot this header file when I cleaned the error_bucket code.

Revision 87864 - (view) (annotate) - [select for diffs]
Modified Sat Jan 27 14:54:30 2001 UTC (8 years, 9 months ago) by wrowe
File length: 23371 byte(s)
Diff to previous 87863 (colored)
  Was there a file that wasn't updated with the error buckets patch?
  Here's the export symbol for http_protocol's error bucket type, but
  I can't find the actual instance (which needs AP_DECLARE_DATA as well.)

Revision 87863 - (view) (annotate) - [select for diffs]
Modified Sat Jan 27 07:13:39 2001 UTC (8 years, 9 months ago) by rbb
File length: 23355 byte(s)
Diff to previous 87808 (colored)
filters can now report an HTTP error to the server.  This is done
by sending a brigade where the first bucket is an error_bucket.
This bucket is a simple bucket that stores an HTTP error and
a string.  Currently the string is not used, but it may be needed
to output an error log.  The http_header_filter will find this
bucket, and output the error text, and then return
AP_FILTER_ERROR, which informs the server that the error web page
has already been sent.

Revision 87808 - (view) (annotate) - [select for diffs]
Modified Wed Jan 24 02:14:23 2001 UTC (8 years, 10 months ago) by gstein
File length: 21702 byte(s)
Diff to previous 87804 (colored)
Begin mod_core.h for CORE-private information. Ideally, AP_CORE_DECLARE
function decl's and CORE_PRIVATE header info should all move into this
header.

Start with moving the filter function declarations.

Revision 87804 - (view) (annotate) - [select for diffs]
Modified Wed Jan 24 01:31:00 2001 UTC (8 years, 10 months ago) by gstein
File length: 22393 byte(s)
Diff to previous 87789 (colored)
Improve the performance of the ap_r* functions by buffering their data in
[the context of] a new filter ("OLD_WRITE").

Further information/discussion of this patch is available on new-httpd
between Jan 16 and Jan 23, 2001.

Revision 87789 - (view) (annotate) - [select for diffs]
Modified Mon Jan 22 23:07:23 2001 UTC (8 years, 10 months ago) by rbb
File length: 22296 byte(s)
Diff to previous 87731 (colored)
We only want to define ap_send_mmap if APR_HAS_MMAP is true.  Without
this, we don't build successfully.

Revision 87731 - (view) (annotate) - [select for diffs]
Modified Fri Jan 19 07:04:36 2001 UTC (8 years, 10 months ago) by wrowe
File length: 22272 byte(s)
Diff to previous 86988 (colored)
  The big change.  This is part 3 of the apr-util symbols rename, please
  see the first commit of srclib/apr-util/include (cvs apr-util/include)
  for the quick glance at symbols changed.

Revision 86988 - (view) (annotate) - [select for diffs]
Modified Fri Nov 17 00:19:30 2000 UTC (9 years ago) by rbb
File length: 22265 byte(s)
Diff to previous 86866 (colored)
This removes all BUFF's from the HTTP proxy.  This code is relatively
ugly, but it does proxy pages.  This even fixes the content-type bug
that I introduced yesterday sometime.  As soon as BUFF is removed from
the FTP proxy, the buff.c and buff.h files need to go away.

Revision 86866 - (view) (annotate) - [select for diffs]
Modified Wed Nov 8 11:35:38 2000 UTC (9 years ago) by dreid
File length: 22189 byte(s)
Diff to previous 86864 (colored)
Start of moving to apr_port_t in the server code.  This will probably the first
of a few...

Revision 86864 - (view) (annotate) - [select for diffs]
Modified Wed Nov 8 06:24:47 2000 UTC (9 years ago) by rbb
File length: 22197 byte(s)
Diff to previous 86860 (colored)
The byte-ranges filter.  This looks like it should work, but the
Acrobat plug-in doesn't like it for some reason.  This does work better
than what we currently have, because at least it returns all of the
requested data.  This basically removes all BUFFs from the byte-range
code and removes all of the byte-range code from the default-handler.

Byte-ranges are now handled by a filter, which makes sense, and it allows
us to handle byte-ranges for all requests, not just files.

Revision 86860 - (view) (annotate) - [select for diffs]
Modified Tue Nov 7 22:41:09 2000 UTC (9 years ago) by gstein
File length: 22785 byte(s)
Diff to previous 86827 (colored)
Use apr_off_t for the content length, rather than long. Propagate through
the byterange handling and ap_set_content_length().

[ ap_each_byterange() remains as an apr_size_t* so we don't mess up callers ]

Revision 86827 - (view) (annotate) - [select for diffs]
Modified Fri Nov 3 17:34:59 2000 UTC (9 years ago) by sascha
File length: 22809 byte(s)
Diff to previous 86780 (colored)
Remove REQUEST_CHUNKED_PASS and change ap_discard_request_body()
to use REQUEST_CHUNKED_DECHUNK.

Because of this change, the need for handle_request_body() is gone,
so we remove that as well.

Revision 86780 - (view) (annotate) - [select for diffs]
Modified Wed Nov 1 00:52:06 2000 UTC (9 years ago) by rbb
File length: 22879 byte(s)
Diff to previous 86775 (colored)
Clean up the http filter a lot.  Instead of sending a bucket per header,
we now create a single bucket that has all of the headers and send that.
One known issue is that this limits the headers to 8k, but it is a minor
patch to fix that.

This also stops us from exporting ap_send_header_field.  This function no
longer makes sense to export.

Revision 86775 - (view) (annotate) - [select for diffs]
Modified Tue Oct 31 12:30:22 2000 UTC (9 years ago) by trawick
File length: 23200 byte(s)
Diff to previous 86699 (colored)
Compute the content length (and add appropriate header field) for
the response when no content length is available and we can't use
chunked encoding.

This is going to be painful when the response body is huge, so I
suspect we'll have additional criteria in the future.

Revision 86699 - (view) (annotate) - [select for diffs]
Modified Sun Oct 22 13:09:23 2000 UTC (9 years, 1 month ago) by trawick
File length: 23037 byte(s)
Diff to previous 86698 (colored)
namespace-protect dechunk_filter and http_filter

Revision 86698 - (view) (annotate) - [select for diffs]
Modified Sun Oct 22 12:53:59 2000 UTC (9 years, 1 month ago) by trawick
File length: 23031 byte(s)
Diff to previous 86697 (colored)
Fix the return type of ap_http_header_filter().

Revision 86697 - (view) (annotate) - [select for diffs]
Modified Sun Oct 22 10:34:05 2000 UTC (9 years, 1 month ago) by stoddard
File length: 23022 byte(s)
Diff to previous 86687 (colored)
Fix Win32 compile break introduced by the http_header filter code.

Revision 86687 - (view) (annotate) - [select for diffs]
Modified Sat Oct 21 14:20:14 2000 UTC (9 years, 1 month ago) by rbb
File length: 23015 byte(s)
Diff to previous 86684 (colored)
Hack headers to work semi-properly.  This is a hack that will need to be
fixed, but it is good enough for now.  The idea is that headers shouldn't
flow through the BUFF anymore.  Now, we have a header filter that is
called at the end of the request-filter chain.  This filter writes the
headers directly to the connection filters.

Revision 86684 - (view) (annotate) - [select for diffs]
Modified Sat Oct 21 13:20:36 2000 UTC (9 years, 1 month ago) by trawick
File length: 22932 byte(s)
Diff to previous 86613 (colored)
Input filters and ap_get_brigade() now have a input mode parameter
(blocking, non-blocking, peek) instead of a length parameter.

Revision 86613 - (view) (annotate) - [select for diffs]
Modified Mon Oct 16 19:11:53 2000 UTC (9 years, 1 month ago) by trawick
File length: 22919 byte(s)
Diff to previous 86609 (colored)
input filtering changes:
  get dechunking working
  verify that infrastructure for input filters works
    (use existing AddInputFilter directive)

Unlike with my previous patch, ap_get_client_block() saves state between
calls in the core's per-request dir config.

Unlike with my previous patch, HTTP_IN keeps a count of remaining bytes
in the conn_rec.  Code that needs to prod it to deliver a certain amount
of request body plays with conn_rec->remain directly.

Revision 86609 - (view) (annotate) - [select for diffs]
Modified Mon Oct 16 06:05:15 2000 UTC (9 years, 1 month ago) by wrowe
File length: 22832 byte(s)
Diff to previous 86567 (colored)
  Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbols
  for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper)
  and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE.
  All _VAR_ flavors changes to _DATA to be absolutely clear.
  Thank you Greg, for the most obvious suggestion.

Revision 86567 - (view) (annotate) - [select for diffs]
Modified Thu Oct 12 16:35:39 2000 UTC (9 years, 1 month ago) by rbb
File length: 22828 byte(s)
Diff to previous 86439 (colored)
Implement a length argument on input filters.  There are three possible
values for the length, -1, 0, and a positive number.  -1 means that the
next filter should return all the data it has, the current filter will
take care to ensure that the protocol is followed.  Most filters will
never use this, because it implies they are implementing a conn_based
input filter.  0 means give me exactly one line of data.  A positive
number means give me a maximum of n bytes.

Revision 86439 - (view) (annotate) - [select for diffs]
Modified Sun Oct 8 00:55:46 2000 UTC (9 years, 1 month ago) by rbb
File length: 22808 byte(s)
Diff to previous 86412 (colored)
Remove ap_send_fb and ap_send_fb_length.  These functions don't make much
sense anymore, because the BUFFs that Apache used to use it for have all
been replaced with buckets.  BUFFs can't be used with filters, and Apache
doesn't use these functions anywhere anymore, so they need to go away now.

Revision 86412 - (view) (annotate) - [select for diffs]
Modified Fri Oct 6 06:07:07 2000 UTC (9 years, 1 month ago) by rbb
File length: 23496 byte(s)
Diff to previous 86249 (colored)
Add the first draft of the http_filter.  In time this filter will split
the bucket brigade between the headers and the body.  Right now it just
converts \r\n to \n\0.

Revision 86249 - (view) (annotate) - [select for diffs]
Modified Mon Sep 18 19:30:23 2000 UTC (9 years, 2 months ago) by trawick
File length: 23391 byte(s)
Diff to previous 86210 (colored)
Fix the calling convention on Windows for ap_bucket_printf() and
ap_method_list_do().

Revision 86210 - (view) (annotate) - [select for diffs]
Modified Wed Sep 13 01:58:15 2000 UTC (9 years, 2 months ago) by coar
File length: 23363 byte(s)
Diff to previous 86059 (colored)
	Start introducing the extension-method elements so we're not
	bound to hard-coded names and a bitmask.  We still use the
	bitmask for known methods, but we also have an array for
	extension method named.  Wherever we used the M_* constants
	we need to use a routine that knows about the new structure instead.

	This is far from complete, but AFAIK this interim work doesn't
	break anything -- especially the compile.  The rest of the
	work will be added in segments; this is just a checkpoint.

Revision 86059 - (view) (annotate) - [select for diffs]
Modified Sat Aug 12 18:45:35 2000 UTC (9 years, 3 months ago) by rbb
File length: 20892 byte(s)
Diff to previous 86054 (colored)
Initial Filtering code.  This uses a bucket brigade scheme to allow modules
to add and modify data while processing a request.  The docs still need
to be updated, and a simple html page needs to be created explaining all
of this.

The only filter currently in the code is the core filter.  This filter
takes a bucket brigade and writes it to the network through the buff
structure.  In time, the buff will go away completely.

More filters will need to be written.
Submitted by:	The Apache Community
Reviewed by:	The Apache Community

Revision 86054 - (view) (annotate) - [select for diffs]
Modified Fri Aug 11 23:45:57 2000 UTC (9 years, 3 months ago) by coar
File length: 20854 byte(s)
Diff to previous 86000 (colored)
	More prototypical API support for arbitrary extension HTTP methods.

Revision 86000 - (view) (annotate) - [select for diffs]
Modified Sat Aug 5 19:20:23 2000 UTC (9 years, 3 months ago) by rbb
File length: 20491 byte(s)
Diff to previous 85976 (colored)
Update http_protocol.h to use ScanDoc.

Revision 85976 - (view) (annotate) - [select for diffs]
Modified Wed Aug 2 05:27:38 2000 UTC (9 years, 3 months ago) by dougm
File length: 10045 byte(s)
Diff to previous 85817 (colored)
prefix libapr functions and types with apr_

Revision 85817 - (view) (annotate) - [select for diffs]
Modified Tue Jul 11 03:48:18 2000 UTC (9 years, 4 months ago) by rbb
File length: 10035 byte(s)
Diff to previous 85810 (colored)
Fix a warning associated with the ap_send_fd change from earlier today.
This just changes a couple of long's to ap_size_t.

Revision 85810 - (view) (annotate) - [select for diffs]
Modified Mon Jul 10 21:49:22 2000 UTC (9 years, 4 months ago) by stoddard
File length: 10030 byte(s)
Diff to previous 85762 (colored)
Reimplement ap_send_fd. Eliminate ap_send_fd_length. If APR_HAS_SENDFILE is
defined but ap_sendfile fails with APR_ENOTIMPL, the BUFF implementation
of ap_send_fd will get a shot at serving the request.  This fix is
required to get Apache working on 95/98 again and can also be useful on
Unix systems where sendfile is available via a servicepack/fixpack/PTF
on a particular level of the OS (e.g., AIX 4.3.2 base does not include
sendfile but is is available with a PTF).

This fix also reimplements the mod_file_cache sendfile_handler using
ap_send_fd and sets the connection aborted flag if the sendfile fails.

Future modification... Add code to ap_send_fd to hijack any data in the
client BUFF structure and send it along with the sendfile.

Revision 85762 - (view) (annotate) - [select for diffs]
Modified Tue Jul 4 00:28:25 2000 UTC (9 years, 4 months ago) by gstein
File length: 10013 byte(s)
Diff to previous 85686 (colored)
add ap_get_status_line() so that modules can get a standardized
    Status-Line value for their response.

Submitted by: Joe Orton <joe@orton.demon.co.uk>
Reviewed by: Greg Stein

Revision 85686 - (view) (annotate) - [select for diffs]
Modified Sat Jun 24 17:34:11 2000 UTC (9 years, 5 months ago) by gstein
File length: 9760 byte(s)
Diff to previous 85319 (colored)
blast the old names for the status codes

Revision 85319 - (view) (annotate) - [select for diffs]
Modified Sat May 27 22:53:48 2000 UTC (9 years, 6 months ago) by wrowe
File length: 9739 byte(s)
Diff to previous 85309 (colored)
PR:
Obtained from:
Submitted by:
Reviewed by:

  Reverse out additional linkage argument from DECLARE_HOOK
  and IMPLEMENT_HOOK macros.

Revision 85309 - (view) (annotate) - [select for diffs]
Modified Sat May 27 05:28:02 2000 UTC (9 years, 6 months ago) by wrowe
File length: 9783 byte(s)
Diff to previous 85045 (colored)
  This patch corrects the issues from the AP_EXPORT and linkage 
  specification arguments to the ap_hooks.h declarations.  As with
  the APR_ and AP_ patches, API_VAR_EXPORT becomes API_EXPORT_VAR,
  and MODULE_VAR_EXPORT becomes MODULE_EXPORT_VAR.

  I will be happy to revert the inclusion of ap_config.h from 
  httpd.h if this bothers anyone.  More individual modules need
  to be patched if we do so.

  The API_EXPORTs all moved into central storage in the ap_config.h
  header.  Without WIN32 or API_STATIC compile time declarations, 
  these macros remain no-ops.

  This patch also moves the following data from http_main to http_config:

    const char *ap_server_argv0;
    const char *ap_server_root;
    ap_array_header_t *ap_server_pre_read_config;
    ap_array_header_t *ap_server_post_read_config;
    ap_array_header_t *ap_server_config_defines;

  And the following variables had already moved into ap_hooks.c:

    ap_pool_t *g_pHookPool;  (initialized now in http_config)
    int g_bDebugHooks;                   (out of http_config)
    const char *g_szCurrentHookName;     (out of http_config)

  The changes to http_main.c are in preparation for that module to
  move out to a seperate .exe for win32.  Other platforms will be
  unaffected, outside of these changes.

Revision 85045 - (view) (annotate) - [select for diffs]
Modified Wed Apr 26 07:14:39 2000 UTC (9 years, 7 months ago) by dougm
File length: 9739 byte(s)
Diff to previous 84877 (colored)
add AP_ prefix to *HOOK* macros

Revision 84877 - (view) (annotate) - [select for diffs]
Modified Fri Mar 31 07:19:05 2000 UTC (9 years, 7 months ago) by fielding
File length: 9727 byte(s)
Diff to previous 84725 (colored)
Update to Apache Software License version 1.1

Revision 84725 - (view) (annotate) - [select for diffs]
Modified Fri Mar 10 00:07:37 2000 UTC (9 years, 8 months ago) by rbb
File length: 9871 byte(s)
Diff to previous 84413 (colored)
Fix all the License issues.  Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license

Revision 84413 - (view) (annotate) - [select for diffs]
Modified Sun Jan 9 05:18:31 2000 UTC (9 years, 10 months ago) by dgaudet
File length: 9745 byte(s)
Diff to previous 84338 (colored)
time overhaul:

- ap_time_t is a 64-bit scalar, microseconds since epoch
- ap_exploded_time_t corresponds to struct tm with a few extras

probably broken on anything except linux.

Revision 84338 - (view) (annotate) - [select for diffs]
Modified Mon Dec 20 16:38:39 1999 UTC (9 years, 11 months ago) by rbb
File length: 9748 byte(s)
Diff to previous 84139 (colored)
First step in getting Apache to use APR's time libraries.  This gets a good
number of them, but I think there are more time values still in the Apache
code.  This works under Linux, but has not been tested anywhere else.

Revision 84139 - (view) (annotate) - [select for diffs]
Modified Sat Nov 20 11:56:13 1999 UTC (10 years ago) by dreid
File length: 9739 byte(s)
Diff to previous 84107 (colored)
Next stage of ap_mmap support.  Tested on FreeBSD and BeOS.

Revision 84107 - (view) (annotate) - [select for diffs]
Modified Fri Nov 5 15:45:05 1999 UTC (10 years ago) by stoddard
File length: 9712 byte(s)
Diff to previous 83930 (colored)
Export ap_send_error_response

Revision 83930 - (view) (annotate) - [select for diffs]
Modified Tue Oct 5 05:14:43 1999 UTC (10 years, 1 month ago) by stoddard
File length: 9700 byte(s)
Diff to previous 83894 (colored)
Update ap_send_fd() and ap_send_fd_length() to use an ap_file_t. Hummm...
Still need to get sendfile() in. First, lets get the serving basically
working again :-)

Revision 83894 - (view) (annotate) - [select for diffs]
Modified Sat Sep 11 22:14:37 1999 UTC (10 years, 2 months ago) by ben
File length: 9686 byte(s)
Diff to previous 83879 (colored)
Fix warnings.

Revision 83879 - (view) (annotate) - [select for diffs]
Modified Wed Sep 8 14:15:55 1999 UTC (10 years, 2 months ago) by rbb
File length: 9676 byte(s)
Diff to previous 83770 (colored)
Remove all of the calls to functions like "ap_popenf".  These functions were
moved down to APR, but they are being removed.  They are not portable, and
were only moved down for backwards compatability.  With this change, they can
be safely removed, which is the next commit on it's way.
Submitted by:  Ryan Bloom and Paul Reder

Revision 83770 - (view) (annotate) - [select for diffs]
Modified Thu Aug 26 14:18:40 1999 UTC (10 years, 3 months ago) by fielding
File length: 9658 byte(s)
Diff to previous 83762 (colored)
Start to implement module-defined hooks that are a) fast and b) typesafe.
Replace pre_connection module call with a register_hook call and
implement pre_connection as a hook. The intent is that these hooks will
be extended to allow Apache to be multi-protocol, and also to allow the
calling order to be specified on a per-hook/per-module basis.  [Ben Laurie]

Port a bunch of modules to the new module structure.
["Michael H. Voase" <mvoase@midcoast.com.au>]

Submitted by:	Ben Laurie

Revision 83762 - (view) (annotate) - [select for diffs]
Modified Thu Aug 26 07:21:44 1999 UTC (10 years, 3 months ago) by fielding
File length: 9246 byte(s)
Diff to previous 83749 (colored)
Replace file descriptor with APRFile [Dean]

Revision 83749 - (view) (annotate) - [select for diffs]
Added Tue Aug 24 05:50:50 1999 UTC (10 years, 3 months ago) by fielding
File length: 9240 byte(s)
Apache 1.3.9 baseline for the Apache 2.0 repository.

Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2