marzio@negrimarzio.it 0 Posted May 5, 2020 I'm trying Mars demos, and I noticed that TMArsResponse injection doesn't work while TWebRespose works. Why? [Context] ReponseM: TMarsResponse; // Not work [Context] ResponseW: TWebResponse; // It works Tks. Share this post Link to post
Andrea Magni 75 Posted May 14, 2020 Hi Marzio, TMARSResponse is intended to be used as return type of your REST methods. If you are looking for a reference to the response object (implemented by the http layer) the second writing is correct. Soon, I'll release a new MARS version and there will be an IMARSResponse interface, wrapping the underlying object (MARS will be soon able to abstract from the http layer, in order to allow use of DelphiCrossSockect along side of Indy and other libraries). Sincerely, Andrea Share this post Link to post