HAhalyard

halyard

A small HTTP client with sane retries

Small, boring and well tested. Does one thing, keeps doing it.

version1.2.0 languageGo licenseMPL-2.0 stars1.4k buildpassing

Install

halyard 1.2.0 is published on the package registry for Go. There is nothing else to download and no build step to configure.

shell
$ go get example.dev/halyard
resolving dependencies…
added halyard 1.2.0 in 1.4s

Releases follow semantic versioning; every published artefact carries a checksum and a signed provenance record.

Usage

The public surface is deliberately small: create a handle, use it, close it. Everything else is configuration with sensible defaults.

example
// create a handle with the defaults
handle = open("service.conf")

set handle.timeout = 30
set handle.retries = 3

result = handle.run(payload)
if result.ok:
    log(result.value)

handle.close()

The full reference, including the error taxonomy and every configuration key, ships with the package as offline documentation.

Why it exists

Graceful shutdown

Drains in-flight work before exiting, always.

Predictable memory

Bounded buffers and no hidden allocations in hot paths.

Battle tested

Property tests plus a fuzz suite that runs on every commit.

Typed all the way

Full type coverage, no escape hatches in the public API.

Contributing

Patches are welcome, and small ones are welcome most of all.

  1. Open an issue first for anything that changes behaviour, so the design can be discussed before the work happens.
  2. Keep the diff focused. One concern per patch; formatting-only changes go in their own commit.
  3. Add a test that fails without your change. The suite runs in a few seconds and must stay that way.
  4. Write the changelog entry in plain language — it is read by people upgrading, not by machines.

Everything here is released under the MPL-2.0 license, and contributions are accepted on the same terms.

Latest release1.2.0
LanguageGo
LicenseMPL-2.0
Stars1.4k
Dependencies0
Test coverage97%
Support window18 months