{"id":29014834,"url":"https://github.com/arteam/dropwizard-http2-client","last_synced_at":"2025-06-25T20:30:31.910Z","repository":{"id":10100788,"uuid":"46871190","full_name":"arteam/dropwizard-http2-client","owner":"arteam","description":"Dropwizard Integration with Jetty HTTP/1.1 and HTTP/2 client ","archived":false,"fork":false,"pushed_at":"2025-05-13T10:29:32.000Z","size":204,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T11:33:33.338Z","etag":null,"topics":["dropwizard","http2","java"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arteam.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":"2015-11-25T15:49:25.000Z","updated_at":"2025-05-13T10:29:46.000Z","dependencies_parsed_at":"2024-05-09T00:27:50.741Z","dependency_job_id":"330a41b6-52bf-449b-aba2-46328466ece7","html_url":"https://github.com/arteam/dropwizard-http2-client","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/arteam/dropwizard-http2-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arteam%2Fdropwizard-http2-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arteam%2Fdropwizard-http2-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arteam%2Fdropwizard-http2-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arteam%2Fdropwizard-http2-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arteam","download_url":"https://codeload.github.com/arteam/dropwizard-http2-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arteam%2Fdropwizard-http2-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261948694,"owners_count":23234878,"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":["dropwizard","http2","java"],"created_at":"2025-06-25T20:30:28.129Z","updated_at":"2025-06-25T20:30:31.866Z","avatar_url":"https://github.com/arteam.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dropwizard HTTP/2 client\n[![Build Status](https://travis-ci.org/arteam/dropwizard-http2-client.svg?branch=master)](https://travis-ci.org/arteam/dropwizard-http2-client)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.arteam/dropwizard-http2-client/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.arteam/dropwizard-http2-client)\n\nDropwizard Integration with the Jetty HTTP/1.1 and HTTP/2 client\n\n* Provides the ability to configure the client from a Dropwizard config.\n* Instruments the client and register the metrics in the Dropwizard's `MetricsRegistry`\n* The client is managed by the Dropwizard's environment and correctly cleans resources.\n\n## Example of the usage:\n\n```yaml\nh2Client:\n  connectionTimeout: 1s\n  idleTimeout: 2s\n```\n\n```java\nprivate Http2ClientConfiguration h2Client;\n\n@JsonProperty\npublic Http2ClientConfiguration getH2Client() {\n    return h2Client;\n}\n\n@JsonProperty\npublic void setH2Client(Http2ClientConfiguration h2Client) {\n    this.h2Client = h2Client;\n}\n```\n\n```java\nHttpClient httpClient = new Http2ClientBuilder(environment)\n                .using(configuration.getH2Client())\n                .build(\"dropwizard-http2-golang\");\n// Call `httpClient.start()` if you want to use it before the server starts up.                \n```\n\n## Runtime dependencies\n\nDon't forget to add an `alpn-boot` library to JVM’s bootpath:\n```\n-Xbootclasspath/p:/${user.home}/.m2/repository/org/mortbay/jetty/alpn/alpn-boot/${alpn-boot.version}/alpn-boot-${alpn-boot.version}.jar\n```\n\nThe correct library version depends on a JVM version. Consult the Jetty ALPN [guide](http://www.eclipse.org/jetty/documentation/current/alpn-chapter.html) for the reference.\n\n## Examples of configurations\n\n* HTTP/2\n\n```yml\nconnectionTimeout: 1s\nidleTimeout: 5m\nconnectionFactory:\n  type : h2\n  keyStorePath:       client.jks\n  keyStorePassword:   http2_client\n  trustStorePath:     servers.jks\n  trustStorePassword: http2_server\n  supportedProtocols:\n    - 'TLSv1.2'\n  supportedCipherSuites:\n    - 'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256'\n```\n\n* HTTP/2 Clear Text\n\n```yml\nconnectionTimeout: 600ms\nidleTimeout: 3m\nconnectionFactory:\n  type : h2c\n```\n\n## Maven dependency\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.arteam\u003c/groupId\u003e\n    \u003cartifactId\u003edropwizard-http2-client\u003c/artifactId\u003e\n    \u003cversion\u003e0.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farteam%2Fdropwizard-http2-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farteam%2Fdropwizard-http2-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farteam%2Fdropwizard-http2-client/lists"}