{"id":16515260,"url":"https://github.com/pine/p5-http-command-wrapper","last_synced_at":"2025-03-02T15:54:11.526Z","repository":{"id":56840179,"uuid":"47915678","full_name":"pine/p5-HTTP-Command-Wrapper","owner":"pine","description":":dizzy: The command based HTTP client. Too minimum dependencies!","archived":false,"fork":false,"pushed_at":"2017-04-15T06:30:03.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T03:14:09.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/HTTP::Command::Wrapper","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pine.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-13T11:05:05.000Z","updated_at":"2017-04-15T06:07:20.000Z","dependencies_parsed_at":"2022-08-29T05:01:13.024Z","dependency_job_id":null,"html_url":"https://github.com/pine/p5-HTTP-Command-Wrapper","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-HTTP-Command-Wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-HTTP-Command-Wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-HTTP-Command-Wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-HTTP-Command-Wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pine","download_url":"https://codeload.github.com/pine/p5-HTTP-Command-Wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241533650,"owners_count":19977826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T16:16:26.885Z","updated_at":"2025-03-02T15:54:11.486Z","avatar_url":"https://github.com/pine.png","language":"Perl","readme":"[![Build Status](https://travis-ci.org/pine/p5-HTTP-Command-Wrapper.svg?branch=master)](https://travis-ci.org/pine/p5-HTTP-Command-Wrapper) [![Build Status](https://img.shields.io/appveyor/ci/pine/p5-HTTP-Command-Wrapper/master.svg)](https://ci.appveyor.com/project/pine/p5-HTTP-Command-Wrapper/branch/master) [![Coverage Status](http://codecov.io/github/pine/p5-HTTP-Command-Wrapper/coverage.svg?branch=master)](https://codecov.io/github/pine/p5-HTTP-Command-Wrapper?branch=master)\n# NAME\n\nHTTP::Command::Wrapper - The command based HTTP client (wget/curl wrapper). Too minimum dependencies!\n\n# SYNOPSIS\n\n    use HTTP::Command::Wrapper;\n\n    my $client  = HTTP::Command::Wrapper-\u003ecreate; # auto detecting (curl or wget)\n    my $content = $client-\u003efetch('https://github.com/');\n\n    print \"$content\\n\";\n\n# DESCRIPTION\n\nHTTP::Command::Wrapper is a very simple HTTP client module.\nIt can wrap `wget` or `curl` command, and can use same interface.\n\n# REQUIREMENTS\n\n`wget` or `curl`\n\n# METHODS\n\n## CLASS METHODS\n\n### `create($options = {})`\n\nCreate new wrapper instance using automatic commands detecting.\n\n### `create($type, $options = {})`\n\nCreate new wrapper instance. `'wget'` or `'curl'` can be specified as `$type` value.\n\n#### `$options`\n\n- `verbose =\u003e 1`\n\n    Turn on verbose output, with all the available data.\n\n- `quiet =\u003e 1`\n\n    Turn off output.\n\n## METHODS\n\n### `fetch($url, $headers = [])`\n\nFetch http/https contents from `$url`. Return a content body as string.\n\n### `fetch_able($url, $headers = [])`\n\nReturn true if `$url` contents can fetch (status code is `200`).\n\n### `download($url, $path, $headers = [])`\n\nFetch http/https contents from `$url`. Save in file. Return process exit code as boolean.\n\n# LICENSE\n\nThe MIT License (MIT)\n\nCopyright (c) 2015-2016 Pine Mizune\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n# AUTHOR\n\nPine Mizune \u003cpinemz@gmail.com\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Fp5-http-command-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpine%2Fp5-http-command-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Fp5-http-command-wrapper/lists"}