-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addition to IMarsRequest #102
Comments
What about using TArray instead of TStrings? Lifetime management would be easier... |
I'm also going to add UserAgent. |
Great! thank you Andrea! I don't know if a TArray would have helped as I use the Names[..] and Values[..] of the TStrings properies which. Thanks for exposing these ;-) |
Please let me know if it works as expected. Example:
If you need to access data in name/value pairs it will be easy to setup a TStringList and add data with AddStrings method. |
Apologies, I didn't mean to close the issue. |
Hi Andrea, Sorry, I've only now got around to testing this. I've pulled the latest source and just have a quick question... I have code for pulling values from the query string like this...
This is not compatible with the latest changes as QueryFields is now a TArray<>, what's the best way to get the value of a parameter? I'm only now starting to learn and use the power of Generics myself so I'm sure there's an easy way to do this which I'm not seeing. |
Ah, forget this, I've just re-read your comment above. So the best option is to copy to a string list in my code? That's fine, just so I know I'm not missing anything obvious. |
If it was possible to add the TPair<string,string>or something similar it would help as access by param name in lots of places in my code. |
Hi Andrea,
I've just updated my MARS from a very old version (I was 200 commits behind I think!) and I had to make some changes to make my code compatible with the latest source.
My code used 3 properties of TWebRequest which are not available in IMarsRequest. I made the changes below... Is there any chance you could add these into the codebase?
Thanks!,
Graham
MARS.Core.RequestAndResponse.Interfaces
MARS.http.Server.Indy
The text was updated successfully, but these errors were encountered: