You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clarify documentation examples of Route methods (#672)
Fixes#666
**Summary of Changes**
1. Update `Route` method documentation comments where the example in the
comments showed a `Router` before. Updated method names include:
* `Headers`
* `HeadersRegexp`
* `Host`
* `Path`
* `Queries`
* `Subrouter`
* `URL`
Notes:
* This includes what PR #667 did plus some changes requested by a
maintainer in the comments
* I was a little torn about changing the example in `Subrouter` since
`(*Router).Host()` (like several `(*Router)` methods) just calls
`(*Router).NewRoute().Host()` so I understand if maintainers are
ambivalent about that example or want it to remain the same.
Signed-off-by: Corey Daley <[email protected]>
Co-authored-by: Andrew Brown <[email protected]>
Co-authored-by: Corey Daley <[email protected]>
0 commit comments