(bind-func fleet_get_units
(let ((url:i8* (zalloc 256)))
(lambda (host:i8* port:i32)
(sprintf url "http://%s:%d/%s/units" host port FLEET_API_VERSION)
(let ((response (json_object_get (ghttp_request_body_as_json (ghttp_perform_GET url)) "units")))
(if (fleet_response_error_p response #t)
null
response)))))