View Source Transloaditex.Request (transloaditex v0.2.4)
Summary
Functions
Makes a HTTP DELETE request
Makes a HTTP GET request
Makes a HTTP POST request
Makes a HTTP PUT request
Functions
Makes a HTTP DELETE request
Makes a HTTP GET request
Args:
path
(string) - URL path to which the request should be made.params
(map) - Optional params to send along with the request. Default is an empty map.
Returns:
An instance of Transloaditex.Response
.
Makes a HTTP POST request
Args:
path
(string) - URL path to which the request should be made.data
(Optional[map]) - The body of the request. THis would be stored under the 'params' field.extra_data
(Optional[map]) - This is also added to the body of the request but not under the 'params' field.files
(Optional[map]) - Files to upload with the request. THis should be a key, value pair of field name and file stream respectively.
Returns:
An instance of Transloaditex.Response
.
Makes a HTTP PUT request