{"id":15048324,"url":"https://github.com/github/htttee","last_synced_at":"2025-10-04T08:32:01.354Z","repository":{"id":10875071,"uuid":"13162990","full_name":"github/htttee","owner":"github","description":"unix's tee over http","archived":true,"fork":true,"pushed_at":"2013-10-08T00:47:43.000Z","size":5212,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-09-30T00:23:31.378Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"benburkert/htttee","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.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":"2013-09-27T22:48:17.000Z","updated_at":"2024-07-31T03:23:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/github/htttee","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fhtttee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fhtttee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fhtttee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fhtttee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/htttee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235232860,"owners_count":18957059,"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-09-24T21:10:48.836Z","updated_at":"2025-10-04T08:32:00.566Z","avatar_url":"https://github.com/github.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# htttee - unix's tee-as-a-service\n\n[![Build Status](https://travis-ci.org/benburkert/htttee.png)](https://travis-ci.org/benburkert/htttee)\n\n\n## What is 'tee'?\n\n    $ man tee\n    NAME\n         tee -- pipe fitting\n    DESCRIPTION\n         The tee utility copies standard input to standard output, making a copy in zero or more files.  The output is unbuffered.\n\nIt's very handy for piping the output of a script to a file and to STDOUT simultaneously.\n\n## What is 'htttee'?\n\nInstead of piping to a file, `htttee` pipes to a web service. Consumers can then stream the\npiped output via the `htttee` command line. Alternately, the streamed output could be viewed\nwithin a browser.\n\nThat is, a streaming output locked within a server can be made accessible to a console\nor browser via `htttee`.\n\n## Usage\n\nIn one terminal:\n\n    ruby -e \"STDOUT.sync = true; 1.upto(100) {|i| puts i; sleep(i/100.0)}\" | \\\n      htttee -e http://localhost:3000 -u SOMEUNIQUESTRING\n\nIn another terminal:\n\n    curl http://localhost:3000/SOMEUNIQUESTRING\n\nOr to see the chunked information:\n\n    $ telnet localhost 3000\n\nThen enter:\n\n    GET /1234 HTTP/1.1\n    Host: localhost\n\nYou will then see a flow of integers being chunked preceded by the size of the chunks. Here is the \nfinal few numbers chunked through:\n\n    3\n    98\n    \n    3\n    99\n    \n    4\n    100\n    \n    0\n    \n    Connection closed by foreign host.\n\n## Browser Support\n\nSome browsers don't behave well when recieving a chunked response of plain/text data. For example,\nlots of them buffer the first 256 bytes or so before doing anything. [SSE](http://www.html5rocks.com/en/tutorials/eventsource/basics/)\nis used to get around this browser limitation. If the request for a stream originates from a browser\nthat supports SSE and the request is for 'text/html' then SSE setup page is returned. That page\nhas a little javascript for setting up the stream and parsing the events. The simplicity of the SSE\nprotocol makes it difficult to sanely send newline characters. So there is a `ctrl` event has been\nadded that makes it easy to send newline characters and other 'special' characters. This could even\nallow for terminal emulation in the future.\n\n## Running the server\n\n    git clone git://github.com/benburkert/htttee.git\n    cd htttee\n    bundle\n    script/server\n\n## Development\n\nTo pull down the repository and run the test suite:\n\n    git clone git://github.com/benburkert/htttee.git\n    cd htttee\n    bundle\n    rake\n\nTo install the gem locally from source:\n\n    rake install\n\nTo release the gem:\n\n    rake release\n\n## License\n\nCopyright (c) 2011 Ben Burkert, ben@benburkert.com\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fhtttee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fhtttee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fhtttee/lists"}