Http
HTTP Client for downloading files
Nested types and modules
Type | Description |
DownloadParameters |
Input parameter type |
PostMethod |
Option type for the HTTP verb |
Functions and values
Function or value | Description |
downloadFile localFilePath uri
Signature: localFilePath:string -> uri:string -> string
|
Download file by the given file path and Uri string -> string -> string Parameters
Returns
|
downloadFiles(input)
Signature: input:DownloadParameters list -> string list
|
Download list of Uri's in parallel DownloadParameters -> string list Parameters
Returns
|
get userName password url
Signature: userName:string -> password:string -> url:string -> string
|
Executes an HTTP GET command and retrives the information. It returns the response of the request, or null if we got 404 or nothing. Parameters
|
getWithHeaders(...)
Signature: userName:string -> password:string -> headerF:(HttpRequestHeaders -> unit) -> url:string -> Map<string,string list> * string
|
Like 'get' but allow to set headers and returns the response headers. |
post url userName password data
Signature: url:string -> userName:string -> password:string -> data:string -> string
|
Executes an HTTP POST command and retrives the information. It returns the response of the request, or null if we got 404 or nothing. Parameters
|
postCommand(...)
Signature: headerF:(HttpRequestHeaders -> unit) -> url:string -> userName:string -> password:string -> data:string -> string
|
Executes an HTTP POST command and retrives the information. Parameters
|
upload url file
Signature: url:string -> file:string -> unit
|
Upload the given file to the given endpoint |