-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Support building URLs with non-http schemes. #260
Conversation
fe5fac8
to
299d70e
Compare
Looks good, but I'm not sure adding Also you could achieve the same thing by doing
in the case that you really need it.. |
Agreed. I was having doubts about |
I'm trying to remove |
The testing is less elegant, but it works. PTAL. |
- Capture first scheme configured for a route for use when building URLs. - Add new Route.URLScheme method similar to URLHost and URLPath. - Update Route.URLHost and Route.URL to use the captured scheme if present.
bce0bcf
to
a8bcb6a
Compare
Rebased on master to resolve conflicts in mux_test.go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, apart from gofmt error for some reason.
Somehow mux_test.go had acquired a BOM. |
The tool I used to resolve the conflict when rebasing was the source of the BOM. I've changed the settings on that so I won't have that problem again. |
Merged. Thanks @ChrisHines! |
Fixes #13. Supersedes #161.