Obsidian HTTP Request is a helper library that allows you to download assets and make HTTP requests either directly or through a proxy (to avoid CORS issues, for example when using images from an other domain with a canvas).
To install Obsidian HTTP Request run the following command:
npm install obsidian-http-request
You can find the library documentation at the following address:
const httpRequest = require("obsidian-http-request");
httpRequest.getText("http://example.com/hello.txt")
.then(function(result) {
console.log(result);
})
.catch(function(error) {
console.error(error);
});
If you have any question, you can:
If you found a bug, please open an issue on Github with as much information as possible.
Please consider filing a bug before starting to work on a new feature. This will allow us to discuss the best way to do it. This is of course not necessary if you just want to fix some typo or small errors in the code.
To check coding style, run the follwoing command:
npx grunt jshint
Tu run tests, use the following command:
npx grunt test
[NEXT] (changes on master that have not been released yet):
v1.5.2:
v1.5.1:
v1.5.0:
v1.4.0:
v1.3.2:
v1.3.1:
v1.3.0:
v1.2.0:
request
and requestProxy
method (to be able to use different methods than GET, with more options) #6v1.1.4: