{"id":37182567,"url":"https://github.com/donutloop/httpcache","last_synced_at":"2026-01-14T21:03:28.603Z","repository":{"id":87159576,"uuid":"134955423","full_name":"donutloop/httpcache","owner":"donutloop","description":" An HTTP server that proxies all requests to other HTTP servers and this servers caches all incoming responses objects","archived":false,"fork":false,"pushed_at":"2018-12-06T11:58:33.000Z","size":42,"stargazers_count":24,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T12:48:54.442Z","etag":null,"topics":["cache","http","webservice"],"latest_commit_sha":null,"homepage":"","language":"Go","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/donutloop.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":"2018-05-26T11:25:39.000Z","updated_at":"2022-06-16T02:37:32.000Z","dependencies_parsed_at":"2023-08-15T21:26:59.330Z","dependency_job_id":null,"html_url":"https://github.com/donutloop/httpcache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/donutloop/httpcache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donutloop%2Fhttpcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donutloop%2Fhttpcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donutloop%2Fhttpcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donutloop%2Fhttpcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donutloop","download_url":"https://codeload.github.com/donutloop/httpcache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donutloop%2Fhttpcache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["cache","http","webservice"],"created_at":"2026-01-14T21:03:27.810Z","updated_at":"2026-01-14T21:03:28.592Z","avatar_url":"https://github.com/donutloop.png","language":"Go","readme":"# httpcache\n\n[![Build Status](https://travis-ci.org/donutloop/httpcache.svg?branch=master)](https://travis-ci.org/donutloop/httpcache)\n[![Coverage Status](https://coveralls.io/repos/github/donutloop/httpcache/badge.svg)](https://coveralls.io/github/donutloop/httpcache)\n\nAn HTTP server that proxies all requests to other HTTP servers and this servers caches all incoming responses objects \n\n## Backend Requirements\n\n* [golang](https://golang.org/) - The Go Programming Language\n* [docker](https://www.docker.com/) - Build, Manage and Secure Your Apps Anywhere. Your Way.\n\n## Prepare GO development environment\n\nFollow [install guide](https://golang.org/doc/install) to install golang.\n\n## Build without docker\n\n```bash\nmkdir -p $GOPATH/src/github.com/donutloop/ \u0026\u0026 cd $GOPATH/src/github.com/donutloop/\n\ngit clone git@github.com:donutloop/httpcache.git\n\ncd httpcache\n\ngo build ./cmd/httpcache\n```\n\n## Build with docker\n\n```bash\nmkdir -p $GOPATH/src/github.com/donutloop/ \u0026\u0026 cd $GOPATH/src/github.com/donutloop/\n\ngit clone git@github.com:donutloop/httpcache.git\n\ndocker build .\n```\n\n## Usage \n\n```bash \nUSAGE\n  httpcache [flags]\n\nFLAGS\n  -cap 100          capacity of cache\n  -cert server.crt  TLS certificate\n  -expire 5         the items in the cache expire after or expire never\n  -http :80         serve HTTP on this address (optional)\n  -key server.key   TLS key\n  -rbcl 524288000   response size limit\n  -tls              serve TLS on this address (optional)\n```\n\n## Usage of cache from outside (GO Example)\n\n```golang\n...\ntransport := \u0026http.Transport{\n    Proxy: SetProxyURL(proxyServer.URL), // Set url of http cache \n    DialContext: (\u0026net.Dialer{\n        Timeout:   30 * time.Second,\n        KeepAlive: 30 * time.Second,\n        DualStack: true,\n    }).DialContext,\n    MaxIdleConns:          100,\n    IdleConnTimeout:       90 * time.Second,\n    TLSHandshakeTimeout:   10 * time.Second,\n    ExpectContinueTimeout: 1 * time.Second,\n}\n\nclient = \u0026http.Client{\n    Transport: transport,\n}\n\nclient.Do(req)\n...\n```\n\n## Run container\nIt's expose port 8000 and run a spefici container by id\n```bash\nsudo docker run  -p 8000:8000 {{container_id}} \n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonutloop%2Fhttpcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonutloop%2Fhttpcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonutloop%2Fhttpcache/lists"}