{"id":18100390,"url":"https://github.com/acatton/memoryhttpd","last_synced_at":"2025-07-17T23:02:38.671Z","repository":{"id":167637909,"uuid":"612279088","full_name":"acatton/memoryhttpd","owner":"acatton","description":"HTTP Server with its resources stored in memory","archived":false,"fork":false,"pushed_at":"2023-03-10T16:16:58.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T04:45:47.957Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acatton.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":"2023-03-10T15:31:05.000Z","updated_at":"2023-03-10T15:42:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"aeabfe62-a15c-4770-9e1d-44f460f3ba34","html_url":"https://github.com/acatton/memoryhttpd","commit_stats":null,"previous_names":["acatton/memoryhttpd"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/acatton/memoryhttpd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acatton%2Fmemoryhttpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acatton%2Fmemoryhttpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acatton%2Fmemoryhttpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acatton%2Fmemoryhttpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acatton","download_url":"https://codeload.github.com/acatton/memoryhttpd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acatton%2Fmemoryhttpd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265676734,"owners_count":23809817,"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-10-31T21:14:01.093Z","updated_at":"2025-07-17T23:02:38.650Z","avatar_url":"https://github.com/acatton.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"memoryhttpd\n===========\n\n![memoryhttpd Icon](.resources/icon.png)\n\nmemoryhttpd is an in-memory HTTP server. Resources can be added by using PUT.\nIt supports multiple hosts.\n\nFor example:\n\n```\n$ curl -v http://localhost:3000/foo/bar/ -H Host:example.com -X PUT -d 'hello world'\n\u003e PUT /foo/bar/ HTTP/1.1\n\u003e Host:example.com\n\u003e Content-Length: 11\n\u003e \n\u003c HTTP/1.1 200 OK\n\u003c x-memoryhttpd-action: set\n\u003c content-length: 11\n\u003c date: Thu, 09 Mar 2023 20:32:07 GMT\n\u003c \nhello world\n$ curl -v http://localhost:3000/foo/bar/ -H Host:example.com\n\u003e GET /foo/bar/ HTTP/1.1\n\u003e Host:example.com\n\u003e \n\u003c HTTP/1.1 200 OK\n\u003c content-length: 11\n\u003c date: Thu, 09 Mar 2023 20:33:22 GMT\n\u003c \nhello world\n$ curl -v http://localhost:3000/foo/bar/ -H Host:example.net\n\u003e GET /foo/bar/ HTTP/1.1\n\u003e Host:example.net\n\u003e User-Agent: curl/7.85.0\n\u003e Accept: */*\n\u003e \n\u003c HTTP/1.1 404 Not Found\n\u003c content-length: 0\n\u003c date: Thu, 09 Mar 2023 20:33:28 GMT\n\u003c \n```\n\nCommands\n--------\n\nSet a value:\n\n```\nPUT /full/path HTTP/1.1\nHost: hostname\nContent-Length: 5\n\nvalue\n```\n\nGet a value:\n\n```\nGET /full/path HTTP/1.1\nHost: hostname\n```\n\nDelete a value:\n\n```\nDELETE /full/path HTTP/1.1\nHost: hostname\n```\n\nSet with an expiration (in milliseconds):\n\n```\nPUT /full/path HTTP/1.1\nHost: hostname\nX-Expire-ms: 30000\nContent-Length: 21\n\nvalue expiring in 30s\n```\n\n\nUse cases\n---------\n\n### acme challenges\n\nmemoryhttpd can be used to store temporary tokens. For example using it as a\nbackend for `/.well-known/acme-challenges/` for a reverse proxy.\n\nMirrors\n-------\n\nThis repository is mirrored on:\n\n* https://codeberg.org/acatton/memoryhttpd\n* https://github.com/acatton/memoryhttpd\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facatton%2Fmemoryhttpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facatton%2Fmemoryhttpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facatton%2Fmemoryhttpd/lists"}