Skip to content

Commit

Permalink
v6.42
Browse files Browse the repository at this point in the history
    - Add retry handling for a stale nonce with digest authentication (marmotil
      and Frank Maas) (GH#40, GH#313, GH#321)
    - Add the patch method to LWP::UserAgent. (GH#334) (Chase Whitener)
    - Fix docs to match keep_alive => undef behavior, add some trivial tests
      (GH#333) (Ville Skyttä)
    - Documentation grammar fixes (GH#331) (Ville Skyttä)
  • Loading branch information
oalders committed Nov 20, 2019
1 parent 89fe82b commit 07cab36
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Change history for libwww-perl

{{$NEXT}}
6.42 2019-11-20 17:40:52Z
- Add retry handling for a stale nonce with digest authentication (marmotil
and Frank Maas) (GH#40, GH#313, GH#321)
- Add the patch method to LWP::UserAgent. (GH#334) (Chase Whitener)
Expand Down
51 changes: 26 additions & 25 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,96 +109,96 @@
"provides" : {
"LWP" : {
"file" : "lib/LWP.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Authen::Basic" : {
"file" : "lib/LWP/Authen/Basic.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Authen::Digest" : {
"file" : "lib/LWP/Authen/Digest.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Authen::Ntlm" : {
"file" : "lib/LWP/Authen/Ntlm.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::ConnCache" : {
"file" : "lib/LWP/ConnCache.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Debug" : {
"file" : "lib/LWP/Debug.pm",
"version" : "6.41",
"version" : "6.42",
"x_deprecated" : 1
},
"LWP::Debug::TraceHTTP" : {
"file" : "lib/LWP/Debug/TraceHTTP.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::DebugFile" : {
"file" : "lib/LWP/DebugFile.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::MemberMixin" : {
"file" : "lib/LWP/MemberMixin.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Protocol" : {
"file" : "lib/LWP/Protocol.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Protocol::cpan" : {
"file" : "lib/LWP/Protocol/cpan.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Protocol::data" : {
"file" : "lib/LWP/Protocol/data.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Protocol::file" : {
"file" : "lib/LWP/Protocol/file.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Protocol::ftp" : {
"file" : "lib/LWP/Protocol/ftp.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Protocol::gopher" : {
"file" : "lib/LWP/Protocol/gopher.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Protocol::http" : {
"file" : "lib/LWP/Protocol/http.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Protocol::loopback" : {
"file" : "lib/LWP/Protocol/loopback.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Protocol::mailto" : {
"file" : "lib/LWP/Protocol/mailto.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Protocol::nntp" : {
"file" : "lib/LWP/Protocol/nntp.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Protocol::nogo" : {
"file" : "lib/LWP/Protocol/nogo.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::RobotUA" : {
"file" : "lib/LWP/RobotUA.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::Simple" : {
"file" : "lib/LWP/Simple.pm",
"version" : "6.41"
"version" : "6.42"
},
"LWP::UserAgent" : {
"file" : "lib/LWP/UserAgent.pm",
"version" : "6.41"
"version" : "6.42"
}
},
"release_status" : "stable",
Expand All @@ -215,7 +215,7 @@
"x_IRC" : "irc://irc.perl.org/#lwp",
"x_MailingList" : "mailto:libwww@perl.org"
},
"version" : "6.41",
"version" : "6.42",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.030000"
Expand Down Expand Up @@ -780,7 +780,7 @@
"branch" : null,
"changelog" : "Changes",
"signed" : 0,
"tag" : "v6.41",
"tag" : "v6.42",
"tag_format" : "v%V",
"tag_message" : "v%V"
},
Expand Down Expand Up @@ -958,6 +958,7 @@
"Doug Bell <doug@preaction.me>",
"Fabian Zeindler <faz@open.ch>",
"Father Chrysostomos <sprout@cpan.org>",
"Frank Maas <maas.frank@gmail.com>",
"FWILES <FWILES@cpan.org>",
"Gavin Peters <gpeters@deepsky.com>",
"Gerhard Poul <gerhard.poul@gmail.com>",
Expand Down
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,33 @@ forced to match that of the server.

The return value is an [HTTP::Response](https://metacpan.org/pod/HTTP%3A%3AResponse) object.

## patch
# Any version of HTTP::Message works with this form:
my $res = $ua->patch( $url, $field\_name => $value, Content => $content );

# Using hash or array references requires HTTP::Message >= 6.12
use HTTP::Request 6.12;
my $res = $ua->patch( $url, \%form );
my $res = $ua->patch( $url, \@form );
my $res = $ua->patch( $url, \%form, $field_name => $value, ... );
my $res = $ua->patch( $url, $field_name => $value, Content => \%form );
my $res = $ua->patch( $url, $field_name => $value, Content => \@form );

This method will dispatch a `PATCH` request on the given URL, with
`%form` or `@form` providing the key/value pairs for the fill-in form
content. Additional headers and content options are the same as for
the ["get" in LWP::UserAgent](https://metacpan.org/pod/LWP%3A%3AUserAgent#get) method.

CAVEAT:

This method can only accept content that is in key-value pairs when using
[HTTP::Request::Common](https://metacpan.org/pod/HTTP%3A%3ARequest%3A%3ACommon) prior to version `6.12`. Any use of hash or array
references will result in an error prior to version `6.12`.

This method will use the `PATCH` function from [HTTP::Request::Common](https://metacpan.org/pod/HTTP%3A%3ARequest%3A%3ACommon)
to build the request. See [HTTP::Request::Common](https://metacpan.org/pod/HTTP%3A%3ARequest%3A%3ACommon) for a details on
how to pass form content and other advanced features.

## post

my $res = $ua->post( $url, \%form );
Expand Down

0 comments on commit 07cab36

Please sign in to comment.