{"id":17844306,"url":"https://github.com/usox/hackttp","last_synced_at":"2025-10-23T02:31:14.041Z","repository":{"id":52966585,"uuid":"121565428","full_name":"usox/hackttp","owner":"usox","description":"PSR7-like http request/response management","archived":false,"fork":false,"pushed_at":"2021-05-20T07:11:50.000Z","size":153,"stargazers_count":8,"open_issues_count":4,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-16T05:19:34.479Z","etag":null,"topics":["hack","hacklang","hhvm","http","message","psr7","request","response"],"latest_commit_sha":null,"homepage":"","language":"Hack","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/usox.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":"2018-02-14T21:50:40.000Z","updated_at":"2024-02-09T19:18:48.000Z","dependencies_parsed_at":"2022-08-19T22:50:17.800Z","dependency_job_id":null,"html_url":"https://github.com/usox/hackttp","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usox%2Fhackttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usox%2Fhackttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usox%2Fhackttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usox%2Fhackttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usox","download_url":"https://codeload.github.com/usox/hackttp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237763888,"owners_count":19362312,"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":["hack","hacklang","hhvm","http","message","psr7","request","response"],"created_at":"2024-10-27T21:28:39.325Z","updated_at":"2025-10-23T02:31:13.733Z","avatar_url":"https://github.com/usox.png","language":"Hack","readme":"[![Build Status](https://travis-ci.org/usox/hackttp.svg?branch=master)](https://travis-ci.org/usox/hackttp)\n\n# HackTTP #\n\nThis is a (currently unstable) implementation of hack-http-request-response-interfaces to allow type-safe access to http requests.\n\n## Usage ##\n\nCreating a server request object containing the request data:\n\n```Hack\n  $server_request = \\Usox\\HackTTP\\createServerRequestFromGlobals();\n```\n\nCreating a response:\n\n```Hack\n  $response = \\Usox\\HackTTP\\createResponse(200, 'Up and at them');\n```\n\nCreating an uri:\n\n```Hack\n  $uri = \\Usox\\HackTTP\\createUri('https://some-uri.com');\n```\n\nHackTTP also provides a set of factories to create the various classes. Those factories implement the hack-http-factory interfaces.\n\n### Inspired by guzzles psr7 implementation ###\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusox%2Fhackttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusox%2Fhackttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusox%2Fhackttp/lists"}