Skip to content

Request: create a built-in request library #14

@Quail-Language

Description

@Quail-Language

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions