We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adf8508 commit 3b4efbcCopy full SHA for 3b4efbc
lib/WWW/Mechanize.pm
@@ -552,6 +552,25 @@ sub head {
552
return $self->SUPER::head( $uri->as_string, @_ );
553
}
554
555
+=head2 $mech->delete ($uri )
556
+
557
+Performs a DELETE request to C<$uri>. Returns an L<HTTP::Response> object.
558
+C<$uri> can be a well-formed URI string, a L<URI> object, or a
559
+L<WWW::Mechanize::Link> object.
560
561
+=cut
562
563
+sub delete {
564
+ my $self = shift;
565
+ my $uri = shift;
566
567
+ $uri = $self->_uri_with_base( $uri );
568
569
+ # It appears we are returning a super-class method,
570
+ # but it in turn calls the request() method here in Mechanize
571
+ return $self->SUPER::delete( $uri->as_string, @_ );
572
+}
573
574
sub _uri_with_base {
575
my $self = shift;
576
my $uri = shift;
0 commit comments