43#define ECS_REST_DEFAULT_PORT (27750)
struct ecs_http_server_t ecs_http_server_t
HTTP server.
FLECS_API ecs_http_server_t * ecs_rest_server_init(ecs_world_t *world, const ecs_http_server_desc_t *desc)
Create HTTP server for REST API.
FLECS_API const ecs_entity_t ecs_id(EcsRest)
Component that instantiates the REST API.
FLECS_API void ecs_rest_server_fini(ecs_http_server_t *srv)
Cleanup REST HTTP server.
FLECS_API void FlecsRestImport(ecs_world_t *world)
Rest module import function.
ecs_id_t ecs_entity_t
An entity identifier.
struct ecs_world_t ecs_world_t
A world is the container for all ECS data and supporting features.
Component that creates a REST API server when instantiated.
uint16_t port
Port of server (optional, default = 27750)
char * ipaddr
Interface address (optional, default = 0.0.0.0)
Used with ecs_http_server_init().