Http Module
HTTP Client for downloading files
Types
Type | Description |
Functions and values
Function or value | Description |
Full Usage:
downloadFile localFilePath uri
Parameters:
string
-
A local file path to download file
uri : string
-
A Uri to download from
Returns: string
String value contains a downloaded file path
|
|
Full Usage:
downloadFiles input
Parameters:
DownloadParameters list
-
List of Http.DownloadParameters . Each Http.DownloadParameters record type contains
Uri and file path
Returns: string list
List of string values contains a list of downloaded files paths
|
|
Full Usage:
get userName password url
Parameters:
string
-
The username to use with the request.
password : string
-
The password to use with the request.
url : string
-
The URL to perform the GET operation.
Returns: string
|
Executes an HTTP GET command and retrieves the information. It returns the response of the request, or null if we got 404 or nothing.
|
Full Usage:
getWithHeaders userName password headerF url
Parameters:
string
password : string
headerF : HttpRequestHeaders -> unit
url : string
Returns: Map<string, string list> * string
|
Like 'get' but allow to set headers and returns the response headers. The username to use with the request. The password to use with the request. A function which allows to manipulate the HTTP headers. The URL to perform the POST operation.
|
Full Usage:
post url userName password data
Parameters:
string
-
The URL to perform the POST operation.
userName : string
-
The username to use with the request.
password : string
-
The password to use with the request.
data : string
-
The data to post.
Returns: string
|
Executes an HTTP POST command and retrieves the information. It returns the response of the request, or null if we got 404 or nothing.
|
Full Usage:
postCommand headerF url userName password data
Parameters:
HttpRequestHeaders -> unit
-
A function which allows to manipulate the HTTP headers.
url : string
-
The URL to perform the POST operation.
userName : string
-
The username to use with the request.
password : string
-
The password to use with the request.
data : string
-
The data to post.
Returns: string
|
Executes an HTTP POST command and retrieves the information. This function will automatically include a "source" parameter if the "Source" property is set. It returns the response of the request, or null if we got 404 or nothing.
|
Full Usage:
upload url file
Parameters:
string
-
The URL to perform the POST operation.
file : string
-
The file to upload.
|
|