diff options
author | Ryan Bloom <rbb@apache.org> | 2000-11-08 07:24:47 +0100 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2000-11-08 07:24:47 +0100 |
commit | 16d27f0da6b46c025f181fd68066433650f23ef0 (patch) | |
tree | 26c0115a77248fa9e7e49df2fbdd61683fe10b91 /include/http_protocol.h | |
parent | ap_set_content_length() now has a void return. (diff) | |
download | apache2-16d27f0da6b46c025f181fd68066433650f23ef0.tar.xz apache2-16d27f0da6b46c025f181fd68066433650f23ef0.zip |
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.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86864 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_protocol.h')
-rw-r--r-- | include/http_protocol.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/include/http_protocol.h b/include/http_protocol.h index 276607f524..112ca0d13f 100644 --- a/include/http_protocol.h +++ b/include/http_protocol.h @@ -103,6 +103,7 @@ AP_DECLARE(void) ap_basic_http_header(request_rec *r, char *buf); */ AP_DECLARE(void) ap_send_http_header(request_rec *l); +AP_CORE_DECLARE_NONSTD(apr_status_t) ap_byterange_filter(ap_filter_t *f, ap_bucket_brigade *b); AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(ap_filter_t *f, ap_bucket_brigade *b); AP_CORE_DECLARE_NONSTD(apr_status_t) ap_content_length_filter(ap_filter_t *, ap_bucket_brigade *); @@ -436,22 +437,6 @@ AP_DECLARE(int) ap_discard_request_body(request_rec *r); /* Sending a byterange */ /** - * Setup the request to send Byte Range requests - * @param r the current request - * @return 1 if request was setup for byte range requests, 0 otherwise - * @deffunc int ap_set_byterange(request_rec *r) - */ -AP_DECLARE(int) ap_set_byterange(request_rec *r); -/** - * Send one byte range chunk for a byte range request - * @param r The current request - * @param offset Set to the position it should be after the chunk is sent - * @param length Set to the length in should be after the chunk is sent - * @deffunc int ap_each_byterange(request_rec *r, apr_off_t *offset, apr_size_t *length) - */ -AP_DECLARE(int) ap_each_byterange(request_rec *r, apr_off_t *offset, - apr_size_t *length); -/** * Setup the output headers so that the client knows how to authenticate * itself the next time, if an authentication request failed. This function * works for both basic and digest authentication |