{"id":13764088,"url":"https://github.com/stephens2424/muxchain","last_synced_at":"2025-12-18T12:49:40.630Z","repository":{"id":16652582,"uuid":"19408016","full_name":"stephens2424/muxchain","owner":"stephens2424","description":"Lightweight Middleware for net/http","archived":false,"fork":false,"pushed_at":"2019-03-19T21:44:51.000Z","size":25,"stargazers_count":207,"open_issues_count":1,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-16T23:32:35.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephens2424.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":"2014-05-03T17:14:17.000Z","updated_at":"2024-10-25T16:05:12.000Z","dependencies_parsed_at":"2022-09-06T10:40:51.475Z","dependency_job_id":null,"html_url":"https://github.com/stephens2424/muxchain","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/stephens2424%2Fmuxchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephens2424%2Fmuxchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephens2424%2Fmuxchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephens2424%2Fmuxchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephens2424","download_url":"https://codeload.github.com/stephens2424/muxchain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253453337,"owners_count":21911080,"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-08-03T15:01:13.441Z","updated_at":"2025-12-18T12:49:35.554Z","avatar_url":"https://github.com/stephens2424.png","language":"Go","funding_links":[],"categories":["Web Frameworks","XML","Web框架","Libraries for creating HTTP middlewares","中间件","中间件### 中间件"],"sub_categories":["Middlewares","Fail injection","中间件","创建http中间件的代码库","中間件"],"readme":"# MuxChain\n\nMuxChain is a small package designed to complement [net/http](http://golang.org/pkg/net/http) for specifying chains of handlers. With it, you can succinctly compose layers of middleware without introducing large dependencies or effectively defeating the type system.\n\n#### Example\n\n```\nmuxchain.Chain(\"/\", logger, gzipHandler, echoHandler)\nhttp.ListenAndServe(\":8080\", muxchain.Default)\n```\n\nThis specifies that all patterns matched should be handled by the logger, then gzip, then echo. Since we're chaining to the default MuxChain, we can just pass that to `http.ListenAndServe`. You can see a more complete example in the \"sample\" directory.\n\n#### License\n\nBSD 3-clause (see LICENSE file)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephens2424%2Fmuxchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephens2424%2Fmuxchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephens2424%2Fmuxchain/lists"}