Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

net.devslash.fetchdsl:service

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

net.devslash.fetchdsl:service

A DSL for HTTP requests

  • 0.26.2
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

fetchDSL

fetchDSL is a tool that aims to provide the ability to easily declaritively create a series of HTTP calls

Build Status

Uses

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).

Examples

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.

GET multiple times
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).

More Examples

For more examples, see the "examples" directory.

FAQs

Package last updated on 10 May 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc