asp.net mvc - How to get the host protocol in .Net Core MVC? -


i have been searching several hours , cannot find answer anywhere. results outdated stackoverflow posts deprecated methods.

the closest found request.scheme returns protocol of request , not protocol of host.

edit, adding context:

i want call url.action("action", "controller", new { foo = foo }, protocol: myhostprotocol); myhostprotocol being set current server protocol. request.scheme returns protocol of caller , not application.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -