1Pinto::Role::UserAgent(U3s)er Contributed Perl DocumentatPiionnto::Role::UserAgent(3)
2
3
4

NAME

6       Pinto::Role::UserAgent - Something that makes network requests
7

VERSION

9       version 0.14
10

METHODS

12   mirror(RESOURCE => PATH)
13       Mirrors the resource located at "from" to the file located at PATH, if
14       the RESOURCE is newer than the file at PATH.  If the intervening
15       directories do not exist, they will be created for you. Returns a true
16       value if the file has changed, returns false if it has not changed.
17       Throws an exception if anything goes wrong.
18
19       The RESOURCE can be either a URI or Path::Class::File object, or a
20       string that represents either of those.  The PATH can be a
21       Path::Class::File object or a string that represents one.
22
23   mirror_temporary(RESOURCE)
24       Mirrors RESOURCE to a file in a temporary directory.  The file will
25       have the same basename as the RESOURCE.  Returns a Path::Class::File
26       that points to the new file.  Throws and exception if anything goes
27       wrong.  Note the temporary directory and all its contents will be
28       deleted when the process terminates.
29

AUTHOR

31       Jeffrey Ryan Thalhammer <jeff@stratopan.com>
32
34       This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer.
35
36       This is free software; you can redistribute it and/or modify it under
37       the same terms as the Perl 5 programming language system itself.
38
39
40
41perl v5.32.1                      2021-01-27         Pinto::Role::UserAgent(3)
Impressum