Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
net.devslash.fetchdsl:service
Advanced tools
fetchDSL is a tool that aims to provide the ability to easily declaritively create a series of HTTP calls
FetchDSL has been designed to be able to easily parallise thousands of HTTP calls with little to no effort from the user. It also works wonderfully for once-off calls, especially when setup for that call is consistent between different examples (think website login).
A basic example that'll send a GET request to http://example.com
runHttp {
call("http://example.com")
}
As simple as that you'll have a HTTP call. Of course, the same could have easily been done with cURL. So lets go onto slightly more challenging problems.
runHttp {
call("http://example.com/!1!") {
data = FileDataSuppler("inputfile")
}
}
This will call http://example.com/
one time for every line in inputfile
. Not only that, but it'll replace !1!
with
whatever is the first part of the line (by default split by spaces).
For more examples, see the "examples" directory.
FAQs
A DSL for HTTP requests
We found that net.devslash.fetchdsl:service demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.