# h2non/gentleman

Plugin-driven, extensible HTTP client toolkit for Go

Repository: https://github.com/h2non/gentleman
Canonical: https://ross.abutalabs.com/products/gentleman
Homepage: https://pkg.go.dev/github.com/h2non/gentleman?tab=doc
Language: Go
License: MIT
License Family: permissive
Topics: http-client, golang, middleware, pluggable, modular, retry, consul, http, client, sdk
Last push: 2023-12-17T15:53:50+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3846, "days_push": 990, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1131, forks 58 (observed 2026-08-28T04:03:42.426013+00:00)

## What it is
gentleman is a plugin-driven, middleware-oriented HTTP client toolkit for Go, built on top of net/http. It lets developers compose rich HTTP clients from reusable built-in or third-party plugins such as retry policies and Consul-based service discovery.

## Use cases
- build a composable http client in go with plugins
- add retry policy to go http requests
- intercept and modify http traffic on the fly in go
- serialize  xml multipart request bodies in go
- mock http client requests in go tests
- build a domain-specific api client sdk in go
- do consul service discovery for http clients

## When to choose
- you need an extensible, plugin-based http client layer in go
- you want middleware-style interception across the full http lifecycle
- you are building reusable sdk clients for specific apis
- you want dependency-free http client composition with built-in /xml/multipart support

## When to avoid
- you just need simple one-off http requests - net/http or a lighter wrapper suffices
- you need a very actively developed project with frequent releases
- you prefer a non-middleware, straightforward client api

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, middleware, serialization, plugin-system
- domain: web-development, apis, developer-tools
- platform: go, cross-platform
- tags: http-client-toolkit, fluent-api, retry, service-discovery, http-mocking

## Member repositories
- h2non/gentleman (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:42.426013+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:38:02.450826+00:00, confidence not recorded.
  - readme: https://github.com/h2non/gentleman (fetched 2026-08-28T04:03:42.426013+00:00, sha b3de695d9562)
  - homepage: https://pkg.go.dev/github.com/h2non/gentleman?tab=doc (fetched 2026-08-29T12:42:29.094809+00:00, sha 7750a327c0e4)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T12:42:29.105210+00:00, sha 757852027879)
  - site_page: https://go.dev/project (fetched 2026-08-29T12:42:29.107270+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
