{"id":16411798,"url":"https://github.com/ijlyttle/httrplus","last_synced_at":"2026-06-13T13:33:03.317Z","repository":{"id":150080210,"uuid":"41631056","full_name":"ijlyttle/httrplus","owner":"ijlyttle","description":"Addons for https://github.com/hadley/httr that one day may be worthy of a PR","archived":false,"fork":false,"pushed_at":"2015-08-31T00:38:41.000Z","size":128,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-13T13:32:59.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ijlyttle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-30T14:16:04.000Z","updated_at":"2015-08-30T14:58:23.000Z","dependencies_parsed_at":"2023-04-06T14:40:32.362Z","dependency_job_id":null,"html_url":"https://github.com/ijlyttle/httrplus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ijlyttle/httrplus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijlyttle%2Fhttrplus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijlyttle%2Fhttrplus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijlyttle%2Fhttrplus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijlyttle%2Fhttrplus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ijlyttle","download_url":"https://codeload.github.com/ijlyttle/httrplus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijlyttle%2Fhttrplus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34286975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11T06:46:37.286Z","updated_at":"2026-06-13T13:33:03.287Z","avatar_url":"https://github.com/ijlyttle.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# httrplus\n\nAddon to the `httr` package. \n\nThe intention is for this package to be short-lived, and to serve as a converstation-starter to a pull-request to `httr`.\n\nThe purpose is to propose a framework around `httr::stop_for_status()` and `httr::warn_for_status()`. The aim is for you to be able to more-easily customise messsages and error/warning-signalling behaviour when using `httr`.\n\nThe central function in this package is `check_for_status()`. Its arguements are:\n\n* `resp` - a `httr::response` object\n* `type` - one of `c(\"error\", \"warning\", \"message\")`\n* `message_function` - a function that takes `resp` as its first arguement, returns message\n* `...` - additional arguements to `message_function`\n\nThe default `message_function` is `message_standard()` (provided here), a function that replicates the messages returned by `httr::stop_for_status()` and `httr::warn_for_status()`\n\nHence, the existing `httr` functions could be rewritten:\n\n```R\nstop_for_status \u003c- function(x){\n  check_for_status(x, type = \"error\")\n}\n\nwarn_for_status \u003c- function(x){\n  check_for_status(x, type = \"warning\")\n}\n```\n\nAnother message function is offered: `message_verbose()`.\n\n## Installation\n\nThis package is not yet on CRAN (and hopefully won't be).\n\nTo get the current development version from github:\n\n```R\n# install.packages(\"devtools\")\ndevtools::install_github(\"ijlyttle/httrplus\")\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fijlyttle%2Fhttrplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fijlyttle%2Fhttrplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fijlyttle%2Fhttrplus/lists"}