{"id":13659711,"url":"https://github.com/isaacs/http-https","last_synced_at":"2025-03-18T17:31:32.257Z","repository":{"id":12899562,"uuid":"15576599","full_name":"isaacs/http-https","owner":"isaacs","description":"A wrapper that chooses http or https for requests","archived":false,"fork":false,"pushed_at":"2022-02-26T23:00:22.000Z","size":2,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-19T21:24:48.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isaacs.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-01-02T05:29:28.000Z","updated_at":"2024-08-31T08:45:31.000Z","dependencies_parsed_at":"2022-07-21T13:02:14.564Z","dependency_job_id":null,"html_url":"https://github.com/isaacs/http-https","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacs%2Fhttp-https","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacs%2Fhttp-https/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacs%2Fhttp-https/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacs%2Fhttp-https/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaacs","download_url":"https://codeload.github.com/isaacs/http-https/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221714835,"owners_count":16868504,"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-08-02T05:01:11.503Z","updated_at":"2024-10-27T18:07:49.489Z","avatar_url":"https://github.com/isaacs.png","language":"JavaScript","readme":"# http-https\n\nA wrapper that chooses http or https for requests\n\n## USAGE\n\n```javascript\nvar hh = require('http-https')\n\nvar req = hh.request('http://example.com/bar')\nvar secureReq = hh.request('https://secure.example.com/foo')\n\n// or with a parsed object...\nvar opt = url.parse(someUrlMaybeHttpMaybeHttps)\nopt.headers = {\n  'user-agent': 'flergy mc flerg'\n}\nopt.method = 'HEAD'\nvar req = hh.request(opt, function (res) {\n  console.log('got response!', res.statusCode, res.headers)\n})\nreq.end()\n```\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaacs%2Fhttp-https","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaacs%2Fhttp-https","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaacs%2Fhttp-https/lists"}