Jump to content

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×