I'm trying to run this library from a .swift
file. The sample code includes this snippet:
#import <XMLHTTPRequest/XMLHTTPRequest.h>
...
JSContext *jsContext = [JSContext new];
XMLHttpRequest *xmlHttpRequest = [XMLHttpRequest new];
[xmlHttpRequest extend:jsContext];
I believe this is Objective-C. How can I run that same code given that I have a .swift
file?