Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Backend Support for curl requests #12

Open
tasiov opened this issue Apr 21, 2021 · 2 comments
Open

New Backend Support for curl requests #12

tasiov opened this issue Apr 21, 2021 · 2 comments

Comments

@tasiov
Copy link

tasiov commented Apr 21, 2021

Add support for curl requests as a web3 library

Looking to add support for curl requests as it is the next web3 library on the list.

curl requests are a command line utility that is not executed in the browser so some work will need to be done to transform curl requests to a browser friendly format like the browser Fetch API.

I propose an implementation that will look something like this:
Screen Shot 2021-04-21 at 2 18 44 PM

In this implementation, curl requests are transformed to Fetch API requests, and both the curl and Fetch requests are displayed in the code sample. With the curl requests commented out, as it is not executed in the browser.

Clicking the "Send Request to Node" button will execute the Fetch API script and display results in the logs panel.

@abunsen
Copy link
Owner

abunsen commented Apr 21, 2021

Your JS code can use the fetch API, but IMO the code examples should use cURL.

@tasiov
Copy link
Author

tasiov commented Apr 21, 2021

So the code examples should omit the fetch code? @abunsen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants