Help language development. Donate to The Perl Foundation
The base URL object to create all URLs from.
The user agent which will be used internally for handling HTTP requests.
method search( Str:D $entity, Str:D $query, Int $limit = 30, Int $offset = 0 ) returns Mu
Private method to perform search requests.
The name of the entity to search for.
The query to search for.
The number of results to fetch.
The offset from the start.
method http-request( URL:D $url ) returns Associative
Private method to handle the actual HTTP requests.
The URL to make the request to.
A string to search for.
The maximum number of results to fetch.
An offset from the start of the result set.
Patrick Spek [email protected]
Copyright © 2020
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.