構造体 request_rec
[HTTP Daemon Routine]

A structure that represents the current request [詳細]

#include <httpd.h>


変数

apr_pool_tpool
conn_recconnection
server_recserver
request_recnext
request_recprev
request_recmain
char * the_request
int assbackwards
int proxyreq
int header_only
char * protocol
int proto_num
const char * hostname
apr_time_t request_time
const char * status_line
int status
const char * method
int method_number
apr_int64_t allowed
apr_array_header_tallowed_xmethods
ap_method_list_tallowed_methods
apr_off_t sent_bodyct
apr_off_t bytes_sent
apr_time_t mtime
int chunked
const char * range
apr_off_t clength
apr_off_t remaining
apr_off_t read_length
int read_body
int read_chunked
unsigned expecting_100
apr_table_theaders_in
apr_table_theaders_out
apr_table_terr_headers_out
apr_table_tsubprocess_env
apr_table_tnotes
const char * content_type
const char * handler
const char * content_encoding
apr_array_header_tcontent_languages
char * vlist_validator
char * user
char * ap_auth_type
int no_cache
int no_local_copy
char * unparsed_uri
char * uri
char * filename
char * canonical_filename
char * path_info
char * args
apr_finfo_t finfo
apr_uri_t parsed_uri
int used_path_info
ap_conf_vector_tper_dir_config
ap_conf_vector_trequest_config
htaccess_resulthtaccess
ap_filter_toutput_filters
ap_filter_tinput_filters
ap_filter_tproto_output_filters
ap_filter_tproto_input_filters
int eos_sent


説明

A structure that represents the current request


構造体

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

List of allowed methods

apr_array_header_t* request_rec::allowed_xmethods

Array of extension methods

char* request_rec::ap_auth_type

If an authentication check was made, this gets set to the auth type.

char* request_rec::args

The QUERY_ARGS extracted from this request

int request_rec::assbackwards

HTTP/0.9, "simple" request (e.g. GET /foo
w/no headers)

apr_off_t request_rec::bytes_sent

body byte count, for easy access

char* request_rec::canonical_filename

The true filename, we canonicalize r->filename if these don't match

int request_rec::chunked

sending chunked transfer-coding

apr_off_t request_rec::clength

The "real" content length

conn_rec* request_rec::connection

The connection to the client

const char* request_rec::content_encoding

How to encode the data

apr_array_header_t* request_rec::content_languages

Array of strings representing the content languages

const char* request_rec::content_type

The content-type for the current request

int request_rec::eos_sent

A flag to determine if the eos bucket has been sent yet

apr_table_t* request_rec::err_headers_out

MIME header environment for the response, printed even on errors and persist across internal redirects

unsigned request_rec::expecting_100

is client waiting for a 100 response?

char* request_rec::filename

The filename on disk corresponding to this response

apr_finfo_t request_rec::finfo

finfo.protection (st_mode) set to zero if no such file

const char* request_rec::handler

The handler string that we use to call a handler function

int request_rec::header_only

HEAD request, as opposed to GET

apr_table_t* request_rec::headers_in

MIME header environment from the request

apr_table_t* request_rec::headers_out

MIME header environment for the response

const char* request_rec::hostname

Host, as set by full URI or Host:

struct htaccess_result* request_rec::htaccess

A linked list of the .htaccess configuration directives accessed by this request. N.B. always add to the head of the list, _never_ to the end. that way, a sub request's list can (temporarily) point to a parent's list

struct ap_filter_t* request_rec::input_filters

A list of input filters to be used for this request

request_rec* request_rec::main

Pointer to the main request if this is a sub-request (see http_request.h)

const char* request_rec::method

Request method (eg. GET, HEAD, POST, etc.)

int request_rec::method_number

M_GET, M_POST, etc.

apr_time_t request_rec::mtime

Last modified time of the requested resource

request_rec* request_rec::next

Pointer to the redirected request if this is an external redirect

int request_rec::no_cache

This response can not be cached

int request_rec::no_local_copy

There is no local copy of this response

apr_table_t* request_rec::notes

Notes from one module to another

struct ap_filter_t* request_rec::output_filters

A list of output filters to be used for this request

apr_uri_t request_rec::parsed_uri

A struct containing the components of URI

char* request_rec::path_info

The PATH_INFO extracted from this request

struct ap_conf_vector_t* request_rec::per_dir_config

Options set in config files, etc.

apr_pool_t* request_rec::pool

The pool associated with the request

request_rec* request_rec::prev

Pointer to the previous request if this is an internal redirect

struct ap_filter_t* request_rec::proto_input_filters

A list of protocol level input filters to be used for this request

int request_rec::proto_num

Protocol version number of protocol; 1.1 = 1001

struct ap_filter_t* request_rec::proto_output_filters

A list of protocol level output filters to be used for this request

char* request_rec::protocol

Protocol string, as given to us, or HTTP/0.9

int request_rec::proxyreq

A proxy request (calculated during post_read_request/translate_name) possible values PROXYREQ_NONE, PROXYREQ_PROXY, PROXYREQ_REVERSE, PROXYREQ_RESPONSE

const char* request_rec::range

The Range: header

int request_rec::read_body

Method for reading the request body (eg. REQUEST_CHUNKED_ERROR, REQUEST_NO_BODY, REQUEST_CHUNKED_DECHUNK, etc...)

int request_rec::read_chunked

reading chunked transfer-coding

apr_off_t request_rec::read_length

Number of bytes that have been read from the request body

apr_off_t request_rec::remaining

Remaining bytes left to read from the request body

struct ap_conf_vector_t* request_rec::request_config

Notes on *this* request

apr_time_t request_rec::request_time

Time when the request started

apr_off_t request_rec::sent_bodyct

byte count in stream is for body

server_rec* request_rec::server

The virtual host for this request

int request_rec::status

Status line

const char* request_rec::status_line

Status line, if set by script

apr_table_t* request_rec::subprocess_env

Array of environment variables to be used for sub processes

char* request_rec::the_request

First line of request

char* request_rec::unparsed_uri

The URI without any parsing performed

char* request_rec::uri

The path portion of the 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

If an authentication check was made, this gets set to the user name.

char* request_rec::vlist_validator

variant list validator (if negotiated)


この構造体の説明は次のファイルから生成されました:
Apacheに対してSun Jul 19 22:05:32 2009に生成されました。  doxygen 1.4.7