This type could be entirely avoided but it is quite practical because it can be mocked for testing.
Download a file from a url using either curl or wget.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | url | |||
| character(len=*), | intent(in) | :: | tmp_pkg_file | |||
| type(error_t), | intent(out), | allocatable | :: | error | 
Perform an http get request, save output to file, and parse json.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | url | |||
| type(version_t), | intent(in), | allocatable | :: | version | ||
| character(len=*), | intent(in) | :: | tmp_pkg_file | |||
| type(json_object), | intent(out) | :: | json | |||
| type(error_t), | intent(out), | allocatable | :: | error | 
Unpack a tarball to a destination.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | tmp_pkg_file | Path to tarball. | ||
| character(len=*), | intent(in) | :: | destination | Destination to unpack to. | ||
| type(error_t), | intent(out), | allocatable | :: | error | Error handling. | 
Perform an http post request with form data.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | endpoint | Endpoint to upload to. | ||
| type(string_t), | intent(in) | :: | form_data(:) | Form data to upload. | ||
| logical, | intent(in) | :: | verbose | Print additional information if true. | ||
| type(error_t), | intent(out), | allocatable | :: | error | Error handling. |