{"id":28530853,"url":"https://github.com/duct-framework/handler","last_synced_at":"2026-02-18T11:40:17.498Z","repository":{"id":268959496,"uuid":"905667254","full_name":"duct-framework/handler","owner":"duct-framework","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-07T20:07:06.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T22:27:00.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duct-framework.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-19T09:36:30.000Z","updated_at":"2025-10-07T20:07:08.000Z","dependencies_parsed_at":"2025-09-16T12:31:07.353Z","dependency_job_id":null,"html_url":"https://github.com/duct-framework/handler","commit_stats":null,"previous_names":["duct-framework/handler"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/duct-framework/handler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duct-framework%2Fhandler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duct-framework%2Fhandler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duct-framework%2Fhandler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duct-framework%2Fhandler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duct-framework","download_url":"https://codeload.github.com/duct-framework/handler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duct-framework%2Fhandler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29578018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"last_error":"SSL_read: 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":[],"created_at":"2025-06-09T14:37:39.595Z","updated_at":"2026-02-18T11:40:13.837Z","avatar_url":"https://github.com/duct-framework.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Duct Handler [![Build Status](https://github.com/duct-framework/handler/actions/workflows/test.yml/badge.svg)](https://github.com/duct-framework/handler/actions/workflows/test.yml)\n\nA library that provides common [Ring][] handlers for the [Duct][]\nframework.\n\n[ring]: https://github.com/ring-clojure/ring\n[duct]: https://github.com/duct-framework/duct\n\n## Installation\n\nAdd the following dependency to your deps.edn file:\n\n    org.duct-framework/handler {:mvn/version \"0.1.4\"}\n\nOr to your Leiningen project file:\n\n    [org.duct-framework/handler \"0.1.4\"]\n\n## Usage\n\nThis library provides three [Integrant][] keys that initiate into Ring\nhandlers.\n\n`:duct.handler/static` creates a handler that always returns the same\nresponse map. The value of this key is the response map itself.\n\n`:duct.handler/file` and `:duct.handler/resource` are handlers that\nreturn files or resources. They take two options:\n\n- `:paths` - a map of paths strings to an option map\n- `:not-found` - a response map to be returned if no path matches\n\nIf the `:not-found` option is not supplied, `nil` is returned from the\nhandler (which can be useful for trying multiple handlers to see which\nmatches).\n\nThe options mapped from each path go directly to the\n[ring.util.reponse/file-response][file-resp] and\n[ring.util.response/resource-response][res-resp] functions.\n\nFor example:\n\n```edn\n{:duct.handler/file\n {\"/\" {:root \"public\"}\n  \"/js\" {:root \"target/js\"}}}\n```\n\n[integrant]: https://github.com/weavejester/integrant\n[file-resp]: https://ring-clojure.github.io/ring/ring.util.response.html#var-file-response\n[res-resp]: https://ring-clojure.github.io/ring/ring.util.response.html#var-resource-response\n\n## License\n\nCopyright © 2025 James Reeves\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduct-framework%2Fhandler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduct-framework%2Fhandler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduct-framework%2Fhandler/lists"}