summaryrefslogtreecommitdiff
path: root/include/http_protocol.h
Commit message (Collapse)AuthorAgeFilesLines
* Doxygen fixup / cleanupIan Holsman2005-08-281-62/+45
| | | | | | | | | submited by: Neale Ranns neale ranns.org reviewed by: Ian Holsman git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@263931 13f79535-47bb-0310-9956-ffa450edef68
* Remove ap_method_list_do and ap_method_list_vdo as previously mentioned ↵Paul Querna2005-04-251-8/+1
| | | | | | dev@httpd. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@164536 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-041-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151408 13f79535-47bb-0310-9956-ffa450edef68
* FINALLY Correct ap_http_method()! It is NOT a method, it's a SCHEME!William A. Rowe Jr2005-01-021-5/+5
| | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@123882 13f79535-47bb-0310-9956-ffa450edef68
* veto and revert win64 patch: 64bit changes must percolate from theRoy T. Fielding2004-10-231-10/+10
| | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105572 13f79535-47bb-0310-9956-ffa450edef68
* WIN64: API changes to clean up Windows 64bit compile warningsAllan K. Edwards2004-10-221-10/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105545 13f79535-47bb-0310-9956-ffa450edef68
* fix the invalid return value entry for ap_meets_conditionsStas Bekman2004-07-181-1/+2
| | | | | | | | | | PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104326 13f79535-47bb-0310-9956-ffa450edef68
* declare the prototypes as well.André Malo2004-04-221-2/+2
| | | | | | | PR: 28523 again git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103480 13f79535-47bb-0310-9956-ffa450edef68
* fix name of The Apache Software FoundationAndré Malo2004-02-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102619 13f79535-47bb-0310-9956-ffa450edef68
* fix copyright dates according to the first check inAndré Malo2004-02-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102548 13f79535-47bb-0310-9956-ffa450edef68
* apply Apache License, Version 2.0André Malo2004-02-061-53/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102525 13f79535-47bb-0310-9956-ffa450edef68
* fix out-of-date commentJeff Trawick2004-01-261-1/+1
| | | | | | | | Submitted by: Aryeh Katz Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102415 13f79535-47bb-0310-9956-ffa450edef68
* update license to 2004.André Malo2004-01-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102135 13f79535-47bb-0310-9956-ffa450edef68
* *) Add a hook (insert_error_filter) to allow filters to re-insertPaul J. Reder2003-12-121-0/+7
| | | | | | | | | | 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] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102038 13f79535-47bb-0310-9956-ffa450edef68
* finished that boring job:André Malo2003-02-031-1/+1
| | | | | | | | | update license to 2003. Happy New Year! ;-)) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98573 13f79535-47bb-0310-9956-ffa450edef68
* Fix commentsWilliam A. Rowe Jr2002-07-111-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96018 13f79535-47bb-0310-9956-ffa450edef68
* Re-use the same temp brigade to read all lines of a request header,Brian Pane2002-07-041-5/+17
| | | | | | | | | 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>) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95956 13f79535-47bb-0310-9956-ffa450edef68
* fix some major badness: error buckets *cannot* use simple_copy becauseCliff Woolley2002-05-311-0/+2
| | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95421 13f79535-47bb-0310-9956-ffa450edef68
* Add macro to check for an error bucket. (Can't call it APR_BUCKET_IS_ERRORJustin Erenkrantz2002-05-301-0/+7
| | | | | | | since error bucket is private to httpd - hence the AP_ prefix.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95410 13f79535-47bb-0310-9956-ffa450edef68
* Moved ap_setup_make_content_type() declaration to http_protocol.hBrian Pane2002-05-101-1/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95031 13f79535-47bb-0310-9956-ffa450edef68
* fix a spelling error in a commentJeff Trawick2002-04-191-1/+1
| | | | | | | | Submitted by: Stas Bekman Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94711 13f79535-47bb-0310-9956-ffa450edef68
* fix a typo in a comment for ap_get_client_block()Jeff Trawick2002-04-191-1/+1
| | | | | | | | Submitted by: Stas Bekman Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94708 13f79535-47bb-0310-9956-ffa450edef68
* Adds support for reading trailers on input by exporting get_mime_headersJustin Erenkrantz2002-04-161-0/+6
| | | | | | | | | | to ap_get_mime_headers and calling it in the appropriate place in ap_http_filter. showstoppers--; git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94667 13f79535-47bb-0310-9956-ffa450edef68
* BUCKET FREELISTSCliff Woolley2002-03-291-4/+6
| | | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94304 13f79535-47bb-0310-9956-ffa450edef68
* Commit 2 of 2 to:Bill Stoddard2002-03-201-2/+8
| | | | | | | | 1. rename ap_rset_content_type to ap_set_content_type 2. reverse the arguments to aligh with ap_set_content_length git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94057 13f79535-47bb-0310-9956-ffa450edef68
* ap_rset_content_type() should take const char * instead of char *Jeff Trawick2002-03-201-1/+1
| | | | | | | | | | 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94051 13f79535-47bb-0310-9956-ffa450edef68
* Final commit to add ap_rset_content_type accessor. Add AddOutputFiltersbyTypeBill Stoddard2002-03-201-0/+5
| | | | | | | filters during call to ap_rset_content_type() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94028 13f79535-47bb-0310-9956-ffa450edef68
* The underlying change here was to add the new WebDAV/DeltaV methodsGreg Stein2002-03-191-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94015 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93918 13f79535-47bb-0310-9956-ffa450edef68
* ap_rgetline: fix folding and partial line handling on ebcdic boxes. TheGreg Ames2002-03-071-2/+18
| | | | | | | | | | 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93776 13f79535-47bb-0310-9956-ffa450edef68
* Rewrite ap_rgetline to remove the need to have an "internal" brigade storedJustin Erenkrantz2002-01-241-5/+6
| | | | | | | | | | | | | | | | | 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93011 13f79535-47bb-0310-9956-ffa450edef68
* Added a version of ap_getline() that allocs a buffer fromBrian Pane2001-12-021-0/+26
| | | | | | | | | the request's pool, rather than copying into a caller-supplied buffer. (This lets us eliminate one copy operation on the request headers.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92290 13f79535-47bb-0310-9956-ffa450edef68
* ap_getline() is useful to modules outside of the core..Doug MacEachern2001-11-071-1/+1
| | | | | | | | | | | | 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: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91778 13f79535-47bb-0310-9956-ffa450edef68
* Remove SMS from the error bucket. SMS is going away now, it isn't reallyRyan Bloom2001-09-281-2/+0
| | | | | | | | used anyplace anymore. Submitted by: "Sander Striker" <striker@apache.org> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91176 13f79535-47bb-0310-9956-ffa450edef68
* A very small optimization to the OLD_WRITE logic. This just makes us storeRyan Bloom2001-09-111-0/+5
| | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91006 13f79535-47bb-0310-9956-ffa450edef68
* BUCKETS SMS PHASE 1Cliff Woolley2001-08-251-0/+2
| | | | | | | Update to match apr-util git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90664 13f79535-47bb-0310-9956-ffa450edef68
* Fix the new method code. We need to cast 1 to an apr_int64_t or it willRyan Bloom2001-08-111-2/+3
| | | | | | | | | | 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> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90090 13f79535-47bb-0310-9956-ffa450edef68
* Add the ability to extend the methods that Apache understandsRyan Bloom2001-08-021-0/+34
| | | | | | | | | | | | 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> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89869 13f79535-47bb-0310-9956-ffa450edef68
* Doc formatting fixesWilliam A. Rowe Jr2001-07-271-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89749 13f79535-47bb-0310-9956-ffa450edef68
* Change the length of the content args to apr_off_t identifiers, and fixWilliam A. Rowe Jr2001-07-261-2/+2
| | | | | | | mod_negotation to treat a size of -1 and indeterminate, instead of 0. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89727 13f79535-47bb-0310-9956-ffa450edef68
* Update to reflect the absence of the apr_bucket_sharedCliff Woolley2001-02-271-1/+1
| | | | | | | struct and the newly-added start field of the apr_bucket struct git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88372 13f79535-47bb-0310-9956-ffa450edef68
* Begin to move functions from the http module to the core. The goal is toRyan Bloom2001-02-261-21/+27
| | | | | | | have only functions that are HTTP specific in the http directory. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88341 13f79535-47bb-0310-9956-ffa450edef68
* shift some declarations over to mod_core.h where they're totally private.Greg Stein2001-02-181-12/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88226 13f79535-47bb-0310-9956-ffa450edef68
* *) Introduce "ap_conf_vector_t" type to assist with legibility and provideGreg Stein2001-02-181-0/+16
| | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88225 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88184 13f79535-47bb-0310-9956-ffa450edef68
* rename:Doug MacEachern2001-02-131-4/+4
| | | | | | | | | | | | ap_bucket_create_error -> ap_bucket_error_create ap_bucket_make_error -> ap_bucket_error_make PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88142 13f79535-47bb-0310-9956-ffa450edef68
* Make the header filter use the brigade buffering functions for creatingRyan Bloom2001-02-091-3/+3
| | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88029 13f79535-47bb-0310-9956-ffa450edef68
* s/l/r/ in ap_send_http_header protototypeDoug MacEachern2001-02-051-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87979 13f79535-47bb-0310-9956-ffa450edef68
* fix minor prototype inconsistencies noticed with C::ScanDoug MacEachern2001-02-041-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87970 13f79535-47bb-0310-9956-ffa450edef68
* Forgot this header file when I cleaned the error_bucket code.Ryan Bloom2001-01-271-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87869 13f79535-47bb-0310-9956-ffa450edef68