{"id":16387434,"url":"https://github.com/arb/good-http","last_synced_at":"2025-10-14T20:36:30.893Z","repository":{"id":21541897,"uuid":"24861446","full_name":"arb/good-http","owner":"arb","description":"Http(s) broadcasting for Good process monitor","archived":false,"fork":false,"pushed_at":"2016-03-17T15:42:13.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":19,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-11T00:27:07.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arb.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-10-06T19:30:32.000Z","updated_at":"2023-01-06T14:50:36.000Z","dependencies_parsed_at":"2022-08-21T17:21:12.356Z","dependency_job_id":null,"html_url":"https://github.com/arb/good-http","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/arb/good-http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arb%2Fgood-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arb%2Fgood-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arb%2Fgood-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arb%2Fgood-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arb","download_url":"https://codeload.github.com/arb/good-http/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arb%2Fgood-http/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020903,"owners_count":26086948,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"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-11T04:26:32.500Z","updated_at":"2025-10-14T20:36:30.877Z","avatar_url":"https://github.com/arb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# good-http\n\nHttp(s) broadcasting for Good process monitor\n\n[![Build Status](https://travis-ci.org/hapijs/good-file.svg?branch=master)](https://travis-ci.org/hapijs/good-file) ![Current Version](https://img.shields.io/npm/v/good-http.svg)\n\nLead Maintainer: [Adam Bretz](https://github.com/arb)\n\n## Usage\n\n`good-http` is a [good-reporter](https://github.com/hapijs/good-reporter) implementation to write [hapi](http://hapijs.com/) server events to remote endpoints. It makes a \"POST\" request with a JSON payload to the supplied `endpoint`.\n\n## Good Http\n### new GoodHttp (endpoint, [options])\n\ncreates a new GoodFile object with the following arguments\n- `endpoint` - full path to remote server to transmit logs.\n- `[options]` - optional arguments object\n\t- `[events]` - an object of key value paris. Defaults to `{ request: '*', log: '*' }`.\n\t\t- `key` - one of (\"request\", \"log\", \"error\", or \"ops\") indicating the hapi event to subscribe to\n\t\t- `value` - an array of tags to filter incoming events. An empty array indicates no filtering.\n\t- `threshold` - number of events to hold before transmission. Defaults to `20`. Set to `0` to have every event start transmission instantly. It is strongly suggested to have a set threshold to make data transmission more efficient.\n    - `[wreck]` - configuration object to pass into [`wreck`](https://github.com/hapijs/wreck#advanced). Defaults to `{ timeout: 60000, headers: {} }`. `content-type` is always \"application/json\".\n\n### GoodHttp Methods\n`good-file` implements the [good-reporter](https://github.com/hapijs/good-reporter) interface as has no additional public methods.\n\n- `stop(callback)` - `GoodHttp` will make a final attempt to transmit anything remaining in it's internal event queue when `stop` is called.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farb%2Fgood-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farb%2Fgood-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farb%2Fgood-http/lists"}