{"id":16244165,"url":"https://github.com/doumanash/lazy-http-can","last_synced_at":"2026-04-17T10:31:31.910Z","repository":{"id":66194948,"uuid":"79046835","full_name":"DoumanAsh/lazy-http-can","owner":"DoumanAsh","description":"Simple HTTP testing service.","archived":false,"fork":false,"pushed_at":"2017-01-21T06:37:20.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T11:19:01.715Z","etag":null,"topics":["http-request-test","koa","node"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DoumanAsh.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":"2017-01-15T17:13:42.000Z","updated_at":"2017-01-15T17:15:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe61796b-e7ff-4091-8f04-78c4ede2bc1f","html_url":"https://github.com/DoumanAsh/lazy-http-can","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"4a7b7c7f50f90814dc5390c68cfa3249be131304"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DoumanAsh/lazy-http-can","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoumanAsh%2Flazy-http-can","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoumanAsh%2Flazy-http-can/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoumanAsh%2Flazy-http-can/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoumanAsh%2Flazy-http-can/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DoumanAsh","download_url":"https://codeload.github.com/DoumanAsh/lazy-http-can/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoumanAsh%2Flazy-http-can/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31925308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:19:20.377Z","status":"ssl_error","status_checked_at":"2026-04-17T10:19:18.682Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["http-request-test","koa","node"],"created_at":"2024-10-10T14:18:04.432Z","updated_at":"2026-04-17T10:31:31.878Z","avatar_url":"https://github.com/DoumanAsh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lazy-http-can\n\nSimple HTTP testing service.\n\nDone just for the sake of exploring [koa](http://koajs.com/) framework.\n\n# Endpoints\n\n## [/](/)\n\nIndex of service.\n\nReturns rendered HTML from this README\n\n## [/mirror](mirror/)\n\nMirror back request.\n\nReponse will contain JSON with following fields:\n- headers - JSON with all request's headers.\n- params - URI params from request.\n- payload - Body of request.\n    - type - Content-Type that were used to parse request's body.\n        - If text then data will be parsed as utf-8 String.\n        - If json then data will be parsed as JSON.\n        - If xml then data will be parsed as utf-8 String.\n        - If x-www-form-urlencoded data will be parsed as URI params.\n        - Otherwise it is array of bytes.\n    - data - Content of body. Type depends on Content-Type.\n\n## [/status/:code](status/200)\n\nResponse back with provided code.\n\nCode should be a valid number and positive integer.\n\nOtherwise error response is sent.\n\n## [/bytes/:num](bytes/1000)\n\nGenerates back response with stream of bytes.\n\nNum should be a valid number and positive integer.\n\nOtherwise error response is sent.\n\n## [/headers](headers)\n\nResponse back with request's headers\n\n## [/header/:header](header/host)\n\nResponse back with a specific header of request.\n\nIf not present, empty JSON is returned.\n\n## [/response/:type](response/body?key=val)\n\nResponse back with data from URI params\n\nPossible type:\n- headers - URI params will be sent back in response's headers\n- body - URI params will be sent back in response's body.\n- all - Above mentioned together.\n\n## [/unicode/:type](unicode/text)\n\nResponse back with unicode data.\n\nPossible type:\n- text - Data is sent as text.\n- bytes - Data is sent as bytes.\n- stream - Data is sent as stream of bytes.\n\n## [/delay/:ms](delay/3000)\n\nResponse is sent with delay in milliseconds.\n\nObviously delay must be a valid positive number.\n\n# Run it locally\n\n```\nnpm install --production\nnpm start\n```\n\n### Environment variables.\n\n* **NODE_PORT** - Port for use. If not specified port 3333 is used.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoumanash%2Flazy-http-can","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoumanash%2Flazy-http-can","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoumanash%2Flazy-http-can/lists"}