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