prepare method
- Nyxx client
override
Transform this HttpRequest into a BaseRequest to be sent.
The client
will be used for authentication if authentication is enabled for this request.
Implementation
@override
http.MultipartRequest prepare(Nyxx client) {
final request = http.MultipartRequest(method, _getUri(client));
request
..headers.addAll(_getHeaders(client))
..fields.addAll(formParams)
..files.addAll(files);
return request;
}