19 #define AFW_IMPLEMENTATION_ID "director"
44 self->pub.inf = &impl_afw_request_handler_inf;
49 &AFW_REQUEST_HANDLER_S_SINGLETON_KEY_HEAD,
65 impl_afw_request_handler_release(
93 for (request_handler_entry = self->head->first_handler; request_handler_entry;
94 request_handler_entry = request_handler_entry->next)
97 request_handler_entry->uri_prefix))
AFW_DEFINE(const afw_object_t *)
Adaptive Framework Core Internal.
Interface afw_interface implementation declares.
#define AFW_UTF8_FMT_ARG(A_STRING)
Convenience Macro for use with AFW_UTF8_FMT to specify arg.
#define AFW_UTF8_FMT
Format string specifier used for afw_utf8_t.
afw_utf8_octet_t afw_utf8_z_t
NFC normalized UTF-8 null terminated string.
void * afw_environment_get_singleton(const afw_utf8_t *singleton_key, afw_xctx_t *xctx)
Get the singleton value.
#define AFW_THROW_ERROR_FZ(code, xctx, format_z,...)
Macro used to set error and 0 rv in xctx and throw it.
#define AFW_THROW_ERROR_Z(code, message_z, xctx)
Macro used to set error and 0 rv in xctx and throw it.
#define afw_pool_calloc_type(instance, type, xctx)
Macro to allocate cleared memory to hold type in pool.
void impl_afw_request_handler_process(const afw_request_handler_t *instance, const afw_request_t *request, afw_xctx_t *xctx)
#define afw_request_handler_process(instance, request, xctx)
Call method process of interface afw_request_handler.
afw_request_handler_director_create(const afw_server_t *server, const afw_utf8_z_t *config_file, const afw_pool_t *p, afw_xctx_t *xctx)
Create a request handler for director.
afw_boolean_t afw_utf8_starts_with(const afw_utf8_t *string, const afw_utf8_t *starts_with)
Check to see if a string starts with another string.
Interface afw_object public struct.
Interface afw_pool public struct.
Interface afw_request_handler public struct.
Interface afw_request public struct.
Interface afw_server public struct.
Interface afw_xctx public struct.