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

Request: create a built-in request library #14

Open
Quail-Language opened this issue Mar 22, 2024 · 0 comments
Open

Request: create a built-in request library #14

Quail-Language opened this issue Mar 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Quail-Language
Copy link
Owner

Right now (as of issue creation time) Quail lacks the ability to connect to the internet. It should have a built-in internet request library (for example like requests in Python).

Request function signature suggestion:

function get(
    string url,
    dict queryParameters={},
    string|dict data={},
    list files=[],
    list cookies=[],
    dict headers={},
    dict|void auth=null,
    num timeout=-1
) {}

which can return an object with response info (content-type, headers, cookies, body, etc.)

Similar functions are suggested for other HTTP methods (POST, PATCH, etc.)

@Quail-Language Quail-Language added the enhancement New feature or request label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant