{"id":15403683,"url":"https://github.com/abargnesi/http-client-graal-native","last_synced_at":"2026-05-19T10:38:41.495Z","repository":{"id":144791299,"uuid":"334558543","full_name":"abargnesi/http-client-graal-native","owner":"abargnesi","description":"Example Java HttpClient, built as binary, using Graal, native-image, and Maven.","archived":false,"fork":false,"pushed_at":"2021-01-31T15:04:40.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T01:51:48.382Z","etag":null,"topics":["graal","graal-native","graalvm","graalvm-native-image","java-11","java-11-http-client","maven"],"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/abargnesi.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":"2021-01-31T02:46:18.000Z","updated_at":"2021-01-31T15:04:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1242e46-bdc6-4081-ad88-27d5e4495bed","html_url":"https://github.com/abargnesi/http-client-graal-native","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"6551bf2b7f513afb389174e93bef327b015c87e3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abargnesi/http-client-graal-native","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abargnesi%2Fhttp-client-graal-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abargnesi%2Fhttp-client-graal-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abargnesi%2Fhttp-client-graal-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abargnesi%2Fhttp-client-graal-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abargnesi","download_url":"https://codeload.github.com/abargnesi/http-client-graal-native/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abargnesi%2Fhttp-client-graal-native/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265473182,"owners_count":23772066,"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":["graal","graal-native","graalvm","graalvm-native-image","java-11","java-11-http-client","maven"],"created_at":"2024-10-01T16:09:40.007Z","updated_at":"2026-05-19T10:38:41.419Z","avatar_url":"https://github.com/abargnesi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-client-graal-native\n\n## Purpose\n\nProvide a simple example project on how to use GraalVM JDK 11, native-image, and Maven together.\n\nI also wanted to experiment with the Java HttpClient API.\n\n## Components\n\nMaven\n- Configures Java 11, native-image, and runs integration tests.\n\nGraal\n- Uses native-image to produce a compiled binary for the application.\n\n## Build and Test\n\nPrerequisites:\n1. Install GraalVM.\n1. Install native-image with `gu install native-image`.\n\nRun `mvn clean verify` to build `http-client` binary and run integration tests against it.\n\n## Run\n\nThe `http-client` binary is in the target directory after compilation.\n\nCommand:\n\n```sh\nusage: http-client URL COUNT\n```\n\nExamples:\n\nRequest the `https://example.com` website once.\n\n```sh\n$ http-client https://example.com 1\n200\n```\n\nRequest the `https://example.com` one-hundred times then output total time.\n\n```sh\n$ time target/http-client https://example.com 100 \u003e /dev/null\n\nreal    0m0.363s\nuser    0m1.601s\nsys     0m0.281s\n```\n\n## License\n\nLicensed under the MIT License (see [LICENSE](LICENSE)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabargnesi%2Fhttp-client-graal-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabargnesi%2Fhttp-client-graal-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabargnesi%2Fhttp-client-graal-native/lists"}