Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 796 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 796 Bytes

HTTP

Contains the functionality for basic HTTP requests.

  • http class:
    • install method: Install file from url to file.
    • GET method: GET request.
    • POST method: POST request.
http install : github.com/EZCodeLanguage/Packages/releases/download/main-package/Main.zip, C:/path/main.zip
undefined result => http GET : ez-code.web.app
http POST : url.com, data, contentType

Entire Class:

class http {
    method install : @str:url, @str:path {
        runexec http.dll.Http.HTTP.WebInstall ~> {url}, {path}
    }
    method GET : @str:url => @str {
        return runexec http.dll.Http.HTTP.GET ~> {url}
    }
    method POST : @str:url, @str:data, @str:contentType => @str {
        return runexec http.dll.Http.HTTP.GET ~> {url}, {data}, {contentType}
    }
}