简体   繁体   中英

How can I get the clients ip address in an Azure function

I need to get my clients IP address in an Azure function. How would I do that without using system.web

There are many similar questions but all answers are using system.web ex: here

It seems a bit overkill to me to bring in all of system.web for such a simple task. Does anybody know a better way?

Thank you

I think you're worrying about something that you don't need to. To read the values, you'll have to load something , bet it System.Collections or System.Web or System.Linq or some other combination.

In this case, System.Web is just the way to do it. That's why it's there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM