50#ifndef NTH_CLIENT_MAGIC_T
54#define NTH_CLIENT_MAGIC_T struct nth_client_magic_s
60#ifndef NTH_SITE_MAGIC_T
64#define NTH_SITE_MAGIC_T struct nth_site_magic_s
81#define NTH_VERSION "1.0"
83#define NTH_CLIENT_VERSION NTH_VERSION
84#define NTH_SERVER_VERSION NTH_VERSION
105NTH_DLL
char const *nth_engine_version(
void);
113NTH_DLL
int nth_engine_get_params(
nth_engine_t const *engine,
115NTH_DLL
int nth_engine_get_stats(
nth_engine_t const *engine,
128 nth_response_f *callback,
131 char const *method_name,
159 nth_request_f *req_callback,
165NTH_DLL
void nth_site_destroy(
nth_site_t *site);
170 nth_request_f *callback,
175NTH_DLL
int nth_site_set_params(
nth_site_t *site,
177NTH_DLL
int nth_site_get_params(
nth_site_t const *site,
179NTH_DLL
int nth_site_get_stats(
nth_site_t const *site,
193 int status,
char const *phrase,
NTH_CLIENT_MAGIC_T nth_client_magic_t
Application context for client requests.
Definition nth.h:58
#define NTH_SITE_MAGIC_T
Default type of application context for NTH servers.
Definition nth.h:64
msg_t * nth_engine_msg_create(nth_engine_t *he, int flags)
Create a new message.
Definition nth_client.c:553
char const * nth_site_server_version(void)
Return server name and version.
Definition nth_server.c:478
int nth_client_is_streaming(nth_client_t const *hc)
Is client streaming response?
Definition nth_client.c:1030
struct nth_client_s nth_client_t
NTH client request.
Definition nth.h:43
struct nth_engine_s nth_engine_t
NTH engine.
Definition nth.h:41
struct auth_status_t * nth_request_auth(nth_request_t const *req)
Return request authentication status.
Definition nth_server.c:1219
struct nth_request_s nth_request_t
Server transaction
Definition nth.h:48
msg_t * nth_client_request(nth_client_t *clnt)
Get request message.
Definition nth_client.c:1010
int nth_client_status(nth_client_t const *clnt)
Gets client status.
Definition nth_client.c:984
#define NTH_CLIENT_MAGIC_T
Default type of application context for client NTH requests.
Definition nth.h:54
url_t const * nth_client_url(nth_client_t const *clnt)
Get original Request-URI.
Definition nth_client.c:1004
msg_t * nth_client_response(nth_client_t const *clnt)
Get response message.
Definition nth_client.c:1021
http_method_t nth_client_method(nth_client_t const *cnlt)
Gets client method.
Definition nth_client.c:998
struct nth_site_s nth_site_t
NTH (virtual) hosts or site(s)
Definition nth.h:46
void nth_client_destroy(nth_client_t *clnt)
Destroy client request.
Definition nth_client.c:949
nth_site_t * nth_site_create(nth_site_t *parent, nth_request_f *req_callback, nth_site_magic_t *magic, url_string_t const *address, tag_type_t tag, tag_value_t value,...)
Create a http site object.
Definition nth_server.c:262
url_t const * nth_site_url(nth_site_t const *site)
Get the site URL.
Definition nth_server.c:472
su_time_t nth_site_access_time(nth_site_t const *site)
Get the time last time served.
Definition nth_server.c:484
int nth_request_status(nth_request_t const *req)
Return request authentication status.
Definition nth_server.c:1201
NTH_SITE_MAGIC_T nth_site_magic_t
Application context for NTH servers.
Definition nth.h:68
Tags for nth, HTTP engine module.
struct tag_type_s const * tag_type_t
struct su_root_t su_root_t