Go to the source code of this file.
Defines | |
#define | NHTTPD_ARG_ENABLE_ADMIN "-NHTTPDadmin" |
#define | NHTTPD_ADMIN_CONTEXT "/nhttp" |
#define | NHTTPD_ADMIN_QUERY_SERVICES "services" |
#define | NHTTPD_ADMIN_QUERY_STATISTICS "statistics" |
#define | NHTTPD_ADMIN_QUERY_ACTIVATE_SERVICE "activate" |
#define | NHTTPD_ADMIN_QUERY_PASSIVATE_SERVICE "passivate" |
Functions | |
herror_t | httpd_admin_init_args (int argc, char **argv) |
|
Context of the nanoHTTP admin interface. Example query:
http://localhost:10000/nhttp
Definition at line 50 of file nanohttp-admin.h. |
|
Parameter to enable a server. Example query:
http://localhost:10000/nhttp?activate=SERVICE_CONTEXT
Definition at line 90 of file nanohttp-admin.h. |
|
Parameter to disable a service. Example query:
http://localhost:10000/nhttp?passivate=SERVICE_CONTEXT
Definition at line 103 of file nanohttp-admin.h. |
|
Query parameter for services. Example query:
http://localhost:10000/nhttp?services=list
Definition at line 63 of file nanohttp-admin.h. |
|
Parameter to query service statistics. Example query:
http://localhost:10000/nhttp?statistics=SERVICE_CONTEXT
Definition at line 76 of file nanohttp-admin.h. |
|
Commandline argument to enabled the nanoHTTP admin interface. This service will be reachable via the NHTTPD_ADMIN_CONTEXT.
Definition at line 35 of file nanohttp-admin.h. Referenced by httpd_admin_init_args(). |
|
Initializes the nanoHTTP admin interface with commandline arguments, if NHTTPD_ARG_ENABLED_ADMIN was specified in the commandline arguments. This service will be reachable via the NHTTP_ADMIN_CONTEXT of the nanohttp server.
Definition at line 300 of file nanohttp-admin.c. References httpd_register(), and NHTTPD_ARG_ENABLE_ADMIN. |