Skip to content
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

url: add join method #3174

Closed
wants to merge 2 commits into from
Closed

url: add join method #3174

wants to merge 2 commits into from

Commits on Oct 4, 2015

  1. url: add join method

    Allows url paths to be combined with similar semantics to
    path.join.
    
    Usage:
    url.join('http://example.com', 'path', '/to', 'route');
    
    The url module was missing a method to join several different
    parts of a path together into one normalized url string. Until
    now, the resolve method has been the closest thing, but only one
    path could be passed to append to the base url.
    
    This functionality works by joining the keeping the source part of
    the url as-is, combining the rest of the arguments with posix.join,
    and then calling url.resolve with the source and combined path.
    pdilyard committed Oct 4, 2015
    Configuration menu
    Copy the full SHA
    c3ed306 View commit details
    Browse the repository at this point in the history
  2. url: add documentation for url.join

    Adds corresponding documentation for url.join method, including
    a description and three examples of usage.
    pdilyard committed Oct 4, 2015
    Configuration menu
    Copy the full SHA
    347bd4c View commit details
    Browse the repository at this point in the history