Add helper functions for host, port and webroot
These should be used in the future instead of location.*. It will make it possible to stub these methods for writing unit tests and simulating different URL schemes.
Loading
Please register or sign in to comment