{"id":16318130,"url":"https://github.com/scorphus/myhttp","last_synced_at":"2025-05-13T17:16:09.811Z","repository":{"id":148200892,"uuid":"269217505","full_name":"scorphus/myhttp","owner":"scorphus","description":"go get github.com/scorphus/myhttp","archived":false,"fork":false,"pushed_at":"2020-06-10T15:15:32.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-16T03:30:40.560Z","etag":null,"topics":["http-client"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"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/scorphus.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-03T23:40:57.000Z","updated_at":"2024-06-19T12:19:43.562Z","dependencies_parsed_at":"2023-05-19T10:30:43.657Z","dependency_job_id":null,"html_url":"https://github.com/scorphus/myhttp","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/scorphus%2Fmyhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scorphus%2Fmyhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scorphus%2Fmyhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scorphus%2Fmyhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scorphus","download_url":"https://codeload.github.com/scorphus/myhttp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253990503,"owners_count":21995776,"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":["http-client"],"created_at":"2024-10-10T22:10:02.906Z","updated_at":"2025-05-13T17:16:09.780Z","avatar_url":"https://github.com/scorphus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyHTTP\n\nMyHTTP makes http requests and prints the address of the request along with\nthe MD5 hash of the response.\n\n## Requirements\n\n- Go 1.10 or more recent\n- Make (*optional*)\n\n## Installing\n\n```\ngo get github.com/scorphus/myhttp\n```\n\nOnce installed, you'll find `myhttp` on your `$PATH`, assuming you [installed\nand configured Go accordingly](https://golang.org/doc/install).\n\n## Building\n\n[Makefile](Makefile) offers a handy `build` target:\n\n```\nmake build\n```\n\nThis target builds the application with the following command:\n\n```\ngo build -x -v -race\n```\n\n## Running\n\nOnce built, you can find the `myhttp` executable in the current directory.\n\n```\n$ ./myhttp --help\nUsage: myhttp [flags] [url ...]\n  -parallel int\n    \tlimit the number of parallel requests (default 10)\n```\n\n### Exempli gratia\n\n```\n$ ./myhttp globo.com dw.com debian.org\nhttp://debian.org ab590dac91d0850169462c9fad24c4d3\nhttp://dw.com dfeb459761932def97ea0bf633bba56a\nhttp://globo.com a4148052ca14220a8637622d5c5aa7a3\n```\n\nUsing `parallel`:\n\n```\n$ ./myhttp -parallel 2 globo.com dw.com debian.org\nhttp://dw.com dfeb459761932def97ea0bf633bba56a\nhttp://globo.com a4148052ca14220a8637622d5c5aa7a3\nhttp://debian.org ab590dac91d0850169462c9fad24c4d3\n```\n\n## Testing\n\n\u003e **Note**: some tests fail with Go \u0026lt; 1.14\n\n[Makefile](Makefile) also has targets to run tests:\n\n```\nmake test\n```\n\nTo run tests and display test coverage on the console:\n\n```\nmake cover\n```\n\nTo run tests and display test coverage on the console and on a browser:\n\n```\nmake cover-html\n```\n\n\u003e *p.s.: run `make list` to list all available targets*\n\n## License\n\nCode in this repository is distributed under the terms of the 3-Clause BSD\nLicense (BSD-3-Clause).\n\nSee [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscorphus%2Fmyhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscorphus%2Fmyhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscorphus%2Fmyhttp/lists"}