Jump to content
Paul Thornton

Delphi 10.4.1 breaks "[Context] Request: TWebRequest;"

Recommended Posts

After updating Delphi to 10.4.1 MARS I am no longer able to access the WebRequest object with:

 

[Context] Request: TWebRequest;

As you can see in the screenshot below, `Request` is always nil. It happens with our server application, but is also repeatable using the MARSParameters demo.

 

image.thumb.png.d6d286da40d2cda1c1a84aa6cb2396a0.png

 

Anybody got any idea what the problem might be?

 

/Paul

 

Share this post


Link to post

HI,

[Context] Request: TWebRequest;

should be changed to 

[Context] Request: IMARSRequest;

you'll need to include MARS.Core.RequestAndResponse.Interfaces in your uses clause.

 

Regards

  • Thanks 1

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
×