Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
be more specific about merge and append behavior in Mojo::URL
  • Loading branch information
kraih committed Jan 4, 2015
1 parent ec7576b commit d50e96c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.72 2015-01-02
5.72 2015-01-04

5.71 2015-01-01
- Updated Net::DNS::Native requirement to 0.15 for some important bug fixes.
Expand Down
11 changes: 6 additions & 5 deletions lib/Mojo/URL.pm
Expand Up @@ -363,12 +363,12 @@ Parse relative or absolute URL.
=head2 path
my $path = $url->path;
$url = $url->path('/foo/bar');
$url = $url->path('foo/bar');
$url = $url->path('/foo/bar');
$url = $url->path(Mojo::Path->new);
Path part of this URL, relative paths will be merged with the existing path,
defaults to a L<Mojo::Path> object.
Path part of this URL, relative paths will be merged with
L<Mojo::Path/"merge">, defaults to a L<Mojo::Path> object.
# "perldoc"
Mojo::URL->new('http://example.com/perldoc/Mojo')->path->parts->[0];
Expand Down Expand Up @@ -415,8 +415,9 @@ Normalized version of L</"scheme">.
$url = $url->query('a=1&b=2');
$url = $url->query(Mojo::Parameters->new);
Query part of this URL, pairs in an array reference will be merged and pairs
in a hash reference appended, defaults to a L<Mojo::Parameters> object.
Query part of this URL, pairs in an array reference will be merged with
L<Mojo::Parameters/"merge"> and pairs in a hash reference appended with
L<Mojo::Parameters/"append">, defaults to a L<Mojo::Parameters> object.
# "2"
Mojo::URL->new('http://example.com?a=1&b=2')->query->param('b');
Expand Down

0 comments on commit d50e96c

Please sign in to comment.