interface http { use http-types.{request, response, http-error}; send-request: func(req: request) -> result; }