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

Implied http prefix (enhancement) #20

Open
QuickWrite opened this issue Sep 28, 2024 · 0 comments
Open

Implied http prefix (enhancement) #20

QuickWrite opened this issue Sep 28, 2024 · 0 comments

Comments

@QuickWrite
Copy link

QuickWrite commented Sep 28, 2024

What is the enhancement?

Currently if a GET-request to a web page needs to be done, the full URL needs to be provided:

GET https://example.com

extract {
  title: title
  texts: => p
}

but it would also be useful if after the get the https:// doesn't need to be provided and can be implied.

This means that it could also be written like this:

GET example.com

extract {
  title: title
  texts: => p
}

Why this enhancement?

I mainly think that this should be added as it improves the usability of this language for testing and toy reasons as I sometimes just want to type in the domain as it comes to my head. And then I remember that I have to add the protocol as well.

Implementation (roughly)

I think that in this case it should try out https and then http if secure was not provided by the website. (As I'm not completely familiar with the codebase I cannot directly say on how to implement it, sorry)

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

1 participant