{"id":20354733,"url":"https://github.com/superpaintman/response-time","last_synced_at":"2025-04-12T02:37:13.150Z","repository":{"id":79226706,"uuid":"74112822","full_name":"SuperPaintman/response-time","owner":"SuperPaintman","description":"Response time for Crystal servers.","archived":false,"fork":false,"pushed_at":"2017-02-16T15:05:53.000Z","size":9,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T02:37:12.626Z","etag":null,"topics":["kemal","middleware","response-time"],"latest_commit_sha":null,"homepage":"https://superpaintman.github.io/response-time/","language":"Crystal","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/SuperPaintman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2016-11-18T09:01:18.000Z","updated_at":"2018-09-11T12:13:23.000Z","dependencies_parsed_at":"2023-06-01T17:31:03.454Z","dependency_job_id":null,"html_url":"https://github.com/SuperPaintman/response-time","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/SuperPaintman%2Fresponse-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperPaintman%2Fresponse-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperPaintman%2Fresponse-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperPaintman%2Fresponse-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuperPaintman","download_url":"https://codeload.github.com/SuperPaintman/response-time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248507025,"owners_count":21115522,"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":["kemal","middleware","response-time"],"created_at":"2024-11-14T23:09:30.428Z","updated_at":"2025-04-12T02:37:13.123Z","avatar_url":"https://github.com/SuperPaintman.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# response\\_time\n\n[![Linux Build][travis-image]][travis-url]\n[![Shards version][shards-image]][shards-url]\n\n\nResponse time for **Crystal** servers.\n\n\nThis module set response HTTP Header like this:\n\n\u003e X-Response-Time: 0.0722ms\n\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  response_time:\n    github: SuperPaintman/response-time\n```\n\n\n--------------------------------------------------------------------------------\n\n## Usage\n### With pure Crystal server\n\n```crystal\nrequire \"response_time\"\nrequire \"http/server\"\n\nserver = HTTP::Server.new(\"0.0.0.0\", 8080,\n  [\n    ResponseTime::Handler.new\n  ]) do |context|\n  context.response.content_type = \"text/plain\"\n  context.response.print \"Hello response time!\"\nend\n\nserver.listen\n```\n\n### With Kemal\n\n```crystal\nrequire \"response_time\"\nrequire \"kemal\"\n\nadd_handler ResponseTime::Handler.new\n\nget \"/\" do |env|\n  \"Hello response time!\"\nend\n\nKemal.run\n```\n\n\n--------------------------------------------------------------------------------\n\n## Test\n\n```sh\ncrystal spec\n```\n\n\n--------------------------------------------------------------------------------\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/SuperPaintman/response-time/fork\u003e)\n2. Create your feature branch (`git checkout -b feature/\u003cfeature_name\u003e`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin feature/\u003cfeature_name\u003e`)\n5. Create a new Pull Request\n\n\n--------------------------------------------------------------------------------\n\n## Contributors\n\n- [SuperPaintman](https://github.com/SuperPaintman) SuperPaintman - creator, maintainer\n\n\n--------------------------------------------------------------------------------\n\n## API\n[Docs][docs-url]\n\n\n--------------------------------------------------------------------------------\n\n## Changelog\n[Changelog][changelog-url]\n\n\n--------------------------------------------------------------------------------\n\n## License\n\n[MIT][license-url]\n\n\n[license-url]: LICENSE\n[changelog-url]: CHANGELOG.md\n[docs-url]: https://superpaintman.github.io/response-time/\n[travis-image]: https://img.shields.io/travis/SuperPaintman/response-time/master.svg?label=linux\n[travis-url]: https://travis-ci.org/SuperPaintman/response-time\n[shards-image]: https://img.shields.io/github/tag/superpaintman/response-time.svg?label=shards\n[shards-url]: https://github.com/superpaintman/response-time\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperpaintman%2Fresponse-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperpaintman%2Fresponse-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperpaintman%2Fresponse-time/lists"}