Add ability to generate secure urls based on if the request is secure.
If a user doesn't specify how to handle secure url generation, match the request.