{"id":16515024,"url":"https://github.com/sdorra/web-resources","last_synced_at":"2025-08-03T06:44:31.076Z","repository":{"id":57722662,"uuid":"147725568","full_name":"sdorra/web-resources","owner":"sdorra","description":"Serving files over http the right way","archived":false,"fork":false,"pushed_at":"2023-11-13T13:40:35.000Z","size":95,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T01:37:22.394Z","etag":null,"topics":["caching","compression","content-disposition","content-type","download","etag","gzip","http","java","last-modified","servlet"],"latest_commit_sha":null,"homepage":"","language":"Java","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/sdorra.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-09-06T19:48:48.000Z","updated_at":"2023-11-13T12:50:42.000Z","dependencies_parsed_at":"2025-01-13T01:45:08.400Z","dependency_job_id":null,"html_url":"https://github.com/sdorra/web-resources","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdorra%2Fweb-resources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdorra%2Fweb-resources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdorra%2Fweb-resources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdorra%2Fweb-resources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdorra","download_url":"https://codeload.github.com/sdorra/web-resources/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241512239,"owners_count":19974547,"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":["caching","compression","content-disposition","content-type","download","etag","gzip","http","java","last-modified","servlet"],"created_at":"2024-10-11T16:14:48.718Z","updated_at":"2025-03-02T13:27:45.823Z","avatar_url":"https://github.com/sdorra.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web-Resources\n\n[![Build Status](https://travis-ci.org/sdorra/web-resources.svg?branch=master)](https://travis-ci.org/sdorra/web-resources)\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.sdorra/web-resources.svg)](https://search.maven.org/search?q=a:web-resources%20g:com.github.sdorra)\n[![Quality Gates](https://sonarcloud.io/api/project_badges/measure?project=com.github.sdorra%3Aweb-resources\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=com.github.sdorra%3Aweb-resources)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.sdorra%3Aweb-resources\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=com.github.sdorra%3Aweb-resources)\n\nThe web-resources library is usable for serving files over http. \nIt does the following things for you:\n\n* Detects and set the right Content-Type for the resource  \n* Partial caching via Last-Modified, If-Modified-Since and If-Unmodified-Since header\n* Partial caching via  ETag, If-Match, If-None-Match header\n* Sets Content-Disposition header\n* Head request without content\n* Optional GZIP compression\n* Optional handling Expires header\n* Optional handling Cache-Control header\n\n## Usage\n\nAdd the latest stable version of to the dependency management tool of your choice.\n\nE.g. for maven:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.sdorra\u003c/groupId\u003e\n    \u003cartifactId\u003eweb-resources\u003c/artifactId\u003e\n    \u003cversion\u003ex.y.z\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nUse the latest version from maven central: [![Maven Central](https://img.shields.io/maven-central/v/com.github.sdorra/web-resources.svg)](https://search.maven.org/search?q=a:web-resources%20g:com.github.sdorra)\n\n### Example\n\n```java\nPath path = Paths.get(\"myfile.txt\");\n\nWebResourceSender.create()\n        .withGZIP()\n        .withExpires(7, TimeUnit.DAYS)\n        .resource(path)\n        .send(request, response);\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdorra%2Fweb-resources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdorra%2Fweb-resources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdorra%2Fweb-resources/lists"}