/**
* Read headers output from a script, ensuring that the output is valid. If
* the output is valid, then the headers are added to the headers out of the
- * current request
+ * current request. If the request method is GET or HEAD and the script's
+ * response will not meet the request's HTTP conditions, a conditional status
+ * code is returned.
* @param r The current request
* @param f The file to read from
* @param buffer Empty when calling the function. On output, if there was an
* error, the string that cause the error is stored here.
- * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise
+ * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR or other 5xx status
+ * code on failure, or a conditional status code (HTTP_NOT_MODIFIED or
+ * HTTP_PRECONDITION_FAILED) to indicate that the script's response does
+ * not meet the request's conditions
* @fn int ap_scan_script_header_err(request_rec *r, apr_file_t *f, char *buffer)
*/
AP_DECLARE(int) ap_scan_script_header_err(request_rec *r, apr_file_t *f, char *buffer);
/**
* Read headers output from a script, ensuring that the output is valid. If
* the output is valid, then the headers are added to the headers out of the
- * current request
+ * current request. If the request method is GET or HEAD and the script's
+ * response will not meet the request's HTTP conditions, a conditional status
+ * code is returned.
* @param r The current request
* @param f The file to read from
* @param buffer Empty when calling the function. On output, if there was an
* error, the string that cause the error is stored here.
* @param module_index The module index to be used for logging
- * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise
+ * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR or other 5xx status
+ * code on failure, or a conditional status code (HTTP_NOT_MODIFIED or
+ * HTTP_PRECONDITION_FAILED) to indicate that the script's response does
+ * not meet the request's conditions
*/
AP_DECLARE(int) ap_scan_script_header_err_ex(request_rec *r, apr_file_t *f,
char *buffer, int module_index);
/**
* Read headers output from a script, ensuring that the output is valid. If
* the output is valid, then the headers are added to the headers out of the
- * current request
+ * current request. If the request method is GET or HEAD and the script's
+ * response will not meet the request's HTTP conditions, a conditional status
+ * code is returned.
* @param r The current request
* @param bb The brigade from which to read
* @param buffer Empty when calling the function. On output, if there was an
* error, the string that cause the error is stored here.
- * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise
+ * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR or other 5xx status
+ * code on failure, or a conditional status code (HTTP_NOT_MODIFIED or
+ * HTTP_PRECONDITION_FAILED) to indicate that the script's response does
+ * not meet the request's conditions
* @fn int ap_scan_script_header_err_brigade(request_rec *r, apr_bucket_brigade *bb, char *buffer)
*/
AP_DECLARE(int) ap_scan_script_header_err_brigade(request_rec *r,
/**
* Read headers output from a script, ensuring that the output is valid. If
* the output is valid, then the headers are added to the headers out of the
- * current request
+ * current request. If the request method is GET or HEAD and the script's
+ * response will not meet the request's HTTP conditions, a conditional status
+ * code is returned.
* @param r The current request
* @param bb The brigade from which to read
* @param buffer Empty when calling the function. On output, if there was an
* error, the string that cause the error is stored here.
* @param module_index The module index to be used for logging
- * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise
+ * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR or other 5xx status
+ * code on failure, or a conditional status code (HTTP_NOT_MODIFIED or
+ * HTTP_PRECONDITION_FAILED) to indicate that the script's response does
+ * not meet the request's conditions
*/
AP_DECLARE(int) ap_scan_script_header_err_brigade_ex(request_rec *r,
apr_bucket_brigade *bb,
/**
* Read headers strings from a script, ensuring that the output is valid. If
* the output is valid, then the headers are added to the headers out of the
- * current request
+ * current request. If the request method is GET or HEAD and the script's
+ * response will not meet the request's HTTP conditions, a conditional status
+ * code is returned.
* @param r The current request
* @param buffer Empty when calling the function. On output, if there was an
* error, the string that cause the error is stored here.
* The varargs are string arguments to parse consecutively for headers,
* with a NULL argument to terminate the list.
*
- * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise
+ * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR or other 5xx status
+ * code on failure, or a conditional status code (HTTP_NOT_MODIFIED or
+ * HTTP_PRECONDITION_FAILED) to indicate that the script's response does
+ * not meet the request's conditions
*/
AP_DECLARE_NONSTD(int) ap_scan_script_header_err_strs(request_rec *r,
char *buffer,
/**
* Read headers strings from a script, ensuring that the output is valid. If
* the output is valid, then the headers are added to the headers out of the
- * current request
+ * current request. If the request method is GET or HEAD and the script's
+ * response will not meet the request's HTTP conditions, a conditional status
+ * code is returned.
* @param r The current request
* @param buffer Empty when calling the function. On output, if there was an
* error, the string that cause the error is stored here.
* The varargs are string arguments to parse consecutively for headers,
* with a NULL argument to terminate the list.
*
- * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise
+ * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR or other 5xx status
+ * code on failure, or a conditional status code (HTTP_NOT_MODIFIED or
+ * HTTP_PRECONDITION_FAILED) to indicate that the script's response does
+ * not meet the request's conditions
*/
AP_DECLARE_NONSTD(int) ap_scan_script_header_err_strs_ex(request_rec *r,
char *buffer,
/**
* Read headers output from a script, ensuring that the output is valid. If
* the output is valid, then the headers are added to the headers out of the
- * current request
+ * current request. If the request method is GET or HEAD and the script's
+ * response will not meet the request's HTTP conditions, a conditional status
+ * code is returned.
* @param r The current request
* @param buffer Empty when calling the function. On output, if there was an
* error, the string that cause the error is stored here.
* @param getsfunc Function to read the headers from. This function should
act like gets()
* @param getsfunc_data The place to read from
- * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise
+ * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR or other 5xx status
+ * code on failure, or a conditional status code (HTTP_NOT_MODIFIED or
+ * HTTP_PRECONDITION_FAILED) to indicate that the script's response does
+ * not meet the request's conditions
*/
AP_DECLARE(int) ap_scan_script_header_err_core(request_rec *r, char *buffer,
int (*getsfunc) (char *, int, void *),
/**
* Read headers output from a script, ensuring that the output is valid. If
* the output is valid, then the headers are added to the headers out of the
- * current request
+ * current request. If the request method is GET or HEAD and the script's
+ * response will not meet the request's HTTP conditions, a conditional status
+ * code is returned.
* @param r The current request
* @param buffer Empty when calling the function. On output, if there was an
* error, the string that cause the error is stored here.
act like gets()
* @param getsfunc_data The place to read from
* @param module_index The module index to be used for logging
- * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise
+ * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR or other 5xx status
+ * code on failure, or a conditional status code (HTTP_NOT_MODIFIED or
+ * HTTP_PRECONDITION_FAILED) to indicate that the script's response does
+ * not meet the request's conditions
*/
AP_DECLARE(int) ap_scan_script_header_err_core_ex(request_rec *r, char *buffer,
int (*getsfunc) (char *, int, void *),