interface http-client { /// An HTTP request. record http-request { /// The URL to which the request should be made. url: string, } /// An HTTP response. record http-response { /// The response body. body: string, } /// Performs an HTTP request and returns the response. fetch: func(req: http-request) -> result; }