|
Apache HTTPD
|
Macros | |
| #define | AP_BUCKET_IS_EOC(e) (e->type == &ap_bucket_type_eoc) |
Functions | |
| AP_CORE_DECLARE (void) ap_process_connection(conn_rec *c | |
| AP_CORE_DECLARE (apr_status_t) ap_shutdown_conn(conn_rec *c | |
| AP_DECLARE (void) ap_lingering_close(conn_rec *c) | |
| AP_DECLARE (int) ap_prep_lingering_close(conn_rec *c) | |
| AP_DECLARE_HOOK (conn_rec *, create_connection,(apr_pool_t *p, server_rec *server, apr_socket_t *csd, long conn_id, void *sbh, apr_bucket_alloc_t *alloc)) AP_DECLARE(int) ap_pre_connection(conn_rec *c | |
| AP_DECLARE (apr_bucket *) ap_bucket_eoc_make(apr_bucket *b) | |
Variables | |
| void * | csd |
| int | flush |
| AP_DECLARE_DATA const apr_bucket_type_t | ap_bucket_type_eoc |
| #define AP_BUCKET_IS_EOC | ( | e | ) | (e->type == &ap_bucket_type_eoc) |
Determine if a bucket is an End Of Connection (EOC) bucket
| e | The bucket to inspect |
Definition at line 161 of file http_connection.h.
| AP_CORE_DECLARE | ( | apr_status_t | ) |
Shutdown the connection for writing.
| c | The connection to shutdown |
| flush | Whether or not to flush pending data before |
| AP_CORE_DECLARE | ( | void | ) |
This is the protocol module driver. This calls all of the pre-connection and connection hooks for all protocol modules.
| c | The connection on which the request is read |
| csd | The mechanism on which this connection is to be read. Most times this will be a socket, but it is up to the module that accepts the request to determine the exact type. |
Flushes all remain data in the client send buffer
| c | The connection to flush |
| AP_DECLARE | ( | apr_bucket * | ) |
Make the bucket passed in an End Of Connection (EOC) bucket
| b | The bucket to make into an EOC bucket |
Create a bucket referring to an End Of Connection (EOC). This indicates that the connection will be closed.
| list | The freelist from which this bucket should be allocated |
| AP_DECLARE | ( | int | ) |
Get default compile flags
Get the AP_REG_* corresponding to the string.
| name | The name (i.e. AP_REG_<name>) |
Compile a regular expression.
| preg | Returned compiled regex |
| regex | The regular expression string |
| cflags | Bitwise OR of AP_REG_* flags (ICASE and NEWLINE supported, other flags are ignored) |
Match a NUL-terminated string against a pre-compiled regex.
| preg | The pre-compiled regex |
| string | The string to match |
| nmatch | Provide information regarding the location of any matches |
| pmatch | Provide information regarding the location of any matches |
| eflags | Bitwise OR of AP_REG_* flags (NOTBOL and NOTEOL supported, other flags are ignored) |
AP_REG_NOMATCH otherwiseMatch a string with given length against a pre-compiled regex. The string does not need to be NUL-terminated.
| preg | The pre-compiled regex |
| buff | The string to match |
| len | Length of the string to match |
| nmatch | Provide information regarding the location of any matches |
| pmatch | Provide information regarding the location of any matches |
| eflags | Bitwise OR of AP_REG_* flags (NOTBOL and NOTEOL supported, other flags are ignored) |
Return an array of named regex backreferences
| preg | The precompiled regex |
| names | The array to which the names will be added |
| prefix | An optional prefix to add to the returned names. AP_REG_MATCH is the recommended prefix. |
| upper | If non zero, uppercase the names |
Apply a regexp operation to a string.
| pool | Pool to allocate from |
| rx | The regex match to apply |
| pattern | The string to apply it to NOTE: This MUST be kept in scope to use regexp memory |
| newpattern | The modified string (ignored if the operation doesn't modify the string) |
For every virtual host on this connection, call func_cb.
| conn | The current connection |
| func_cb | Function called for every Name Based Virtual Host for this connection. |
| baton | Opaque object passed to func_cb. |
Updates r->server with the best name-based virtual host match, within the chain of matching virtual hosts selected by ap_update_vhost_given_ip.
| r | The current request |
| require_match | 1 to return an HTTP error if the requested hostname is not explicitly matched to a VirtualHost. |
Match the host in the header with the hostname of the server for this request.
| r | The current request |
| host | The hostname in the headers |
| port | The port from the headers |
| AP_DECLARE | ( | void | ) |
This function is responsible for the following cases:
we now proceed to read from the client until we get EOF, or until MAX_SECS_TO_LINGER has passed. The reasons for doing this are documented in a draft: http://tools.ietf.org/html/draft-ietf-http-connection-00.txt in a nutshell -- if we don't make this effort we risk causing TCP RST packets to be sent which can tear down a connection before all the response data has been sent to the client.
| c | The connection we are closing |
Set default compile flags
| cflags | Bitwise OR of AP_REG_* flags |
Destroy a pre-compiled regex.
| preg | The pre-compiled regex to free. |
Get a pointer to a match from regex memory NOTE: this relies on the match pattern from the last call to ap_rxplus_exec still being valid (i.e. not freed or out-of-scope)
| rx | The regexp |
| n | The match number to retrieve (must be between 0 and nmatch) |
| len | Returns the length of the match. |
| match | Returns the match pattern |
called before any config is read
| p | Pool to allocate out of |
called after the config has been read to compile the tables needed to do the run-time vhost lookups
| p | The pool to allocate out of |
| main_server | The start of the virtual host list |
given an ip address only, give our best guess as to what vhost it is
| conn | The current connection |
ap_update_vhost_given_ip is never enough, and this is always called after the headers have been read. It may change r->server.
| r | The current request |
| AP_DECLARE_HOOK | ( | conn_rec * | , |
| create_connection | , | ||
| (apr_pool_t *p, server_rec *server, apr_socket_t *csd, long conn_id, void *sbh, apr_bucket_alloc_t *alloc) | |||
| ) |
create_connection is a RUN_FIRST hook which allows modules to create connections. In general, you should not install filters with the create_connection hook. If you require vhost configuration information to make filter installation decisions, you must use the pre_connection or install_network_transport hook. This hook should close the connection if it encounters a fatal error condition.
| p | The pool from which to allocate the connection record |
| server | The server record to create the connection too. |
| csd | The socket that has been accepted |
| conn_id | A unique identifier for this connection. The ID only needs to be unique at that time, not forever. |
| sbh | A handle to scoreboard information for this connection. |
| alloc | The bucket allocator to use for all bucket/brigade creations |
| c | The connection on which the request has been received. |
| csd | The mechanism on which this connection is to be read. Most times this will be a socket, but it is up to the module that accepts the request to determine the exact type. |
| c | The connection on which the request has been received. |
| c | The connection on which the request has been received. |
| c | The connection on which the request has been received. Same as for the pre_connection hook. |
| csd | The mechanism on which this connection is to be read. Most times this will be a socket, but it is up to the module that accepts the request to determine the exact type. Same as for the pre_connection hook. |
|
extern |
End Of Connection (EOC) bucket
Definition at line 48 of file eoc_bucket.c.
| void * csd |
Definition at line 44 of file http_connection.h.
| int flush |
Definition at line 52 of file http_connection.h.