prepare method
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
Request prepare(Nyxx client) {
final request = Request(method, _getUri(client));
request.headers.addAll(_getHeaders(client));
if (body != null) {
request.headers.addAll(jsonContentTypeHeader);
request.body = body!;
}
return request;
}