|
Apache HTTPD
|
A structure that represents the current request. More...
#include <httpd.h>
| apr_int64_t request_rec::allowed |
'allowed' is a bitvector of the allowed methods.
A handler must ensure that the request method is one that it is capable of handling. Generally modules should DECLINE any request methods they do not handle. Prior to aborting the handler like this the handler should set r->allowed to the list of methods that it is willing to handle. This bitvector is used to construct the "Allow:" header required for OPTIONS requests, and HTTP_METHOD_NOT_ALLOWED and HTTP_NOT_IMPLEMENTED status codes.
Since the default_handler deals with OPTIONS, all modules can usually decline to deal with OPTIONS. TRACE is always allowed, modules don't need to set it explicitly.
Since the default_handler will always handle a GET, a module which does not implement GET should probably return HTTP_METHOD_NOT_ALLOWED. Unfortunately this means that a Script GET handler can't be installed by mod_actions.
| ap_method_list_t* request_rec::allowed_methods |
| apr_array_header_t* request_rec::allowed_xmethods |
| char* request_rec::ap_auth_type |
| char* request_rec::args |
| int request_rec::assbackwards |
| ap_request_bnotes_t request_rec::bnotes |
Request flags associated with this request. Use AP_REQUEST_GET_FLAGS() and AP_REQUEST_SET_FLAGS() to access the elements of this field.
| apr_table_t* request_rec::body_table |
For ap_body_to_table(): parsed body
| apr_off_t request_rec::bytes_sent |
| char* request_rec::canonical_filename |
| conn_rec* request_rec::connection |
| apr_array_header_t* request_rec::content_languages |
| int request_rec::double_reverse |
| int request_rec::eos_sent |
| apr_table_t* request_rec::err_headers_out |
| unsigned request_rec::expecting_100 |
| char* request_rec::filename |
| apr_finfo_t request_rec::finfo |
| int request_rec::header_only |
| apr_table_t* request_rec::headers_in |
| apr_table_t* request_rec::headers_out |
| const struct htaccess_result* request_rec::htaccess |
| struct ap_filter_t* request_rec::input_filters |
| apr_thread_mutex_t* request_rec::invoke_mtx |
| apr_bucket_brigade* request_rec::kept_body |
| const struct ap_logconf* request_rec::log |
| request_rec* request_rec::main |
Pointer to the main request if this is a sub-request (see http_request.h)
| apr_time_t request_rec::mtime |
| request_rec* request_rec::next |
| int request_rec::no_local_copy |
| apr_table_t* request_rec::notes |
| struct ap_filter_t* request_rec::output_filters |
| apr_uri_t request_rec::parsed_uri |
| char* request_rec::path_info |
| struct ap_conf_vector_t* request_rec::per_dir_config |
| apr_pool_t* request_rec::pool |
| request_rec* request_rec::prev |
| struct ap_filter_t* request_rec::proto_input_filters |
| int request_rec::proto_num |
| struct ap_filter_t* request_rec::proto_output_filters |
| char* request_rec::protocol |
| int request_rec::proxyreq |
| int request_rec::read_body |
| int request_rec::read_chunked |
| apr_off_t request_rec::read_length |
| apr_off_t request_rec::remaining |
| struct ap_conf_vector_t* request_rec::request_config |
| apr_time_t request_rec::request_time |
| apr_off_t request_rec::sent_bodyct |
| server_rec* request_rec::server |
| apr_table_t* request_rec::subprocess_env |
| apr_table_t* request_rec::trailers_in |
| apr_table_t* request_rec::trailers_out |
| char* request_rec::unparsed_uri |
| char* request_rec::uri |
| int request_rec::used_path_info |
Flag for the handler to accept or reject path_info on the current request. All modules should respect the AP_REQ_ACCEPT_PATH_INFO and AP_REQ_REJECT_PATH_INFO values, while AP_REQ_DEFAULT_PATH_INFO indicates they may follow existing conventions. This is set to the user's preference upon HOOK_VERY_FIRST of the fixups.
| char* request_rec::user |
| apr_sockaddr_t* request_rec::useragent_addr |
| char* request_rec::useragent_host |
Originator's DNS name, if known. NULL if DNS hasn't been checked, "" if it has and no address was found. N.B. Only access this though ap_get_useragent_host()
| char* request_rec::vlist_validator |