philiprehberger-http_client 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c45ebe7d84b21537896e6e973ed05aa04a2d582f51e3ffe84f75be8896aba31
4
- data.tar.gz: 3113777f92b0047542c4498885e259fcf87823ccbecb0bc993aa0de99f0c9b54
3
+ metadata.gz: ad967beaec9e64b19f5f3ff422942f5d74af63c347eec2e4b7fa61b1038d5eea
4
+ data.tar.gz: 5d16323e87ea653e03069fbf53800840b9f6a0bef8c6dc939fa9ec8a1ec3d54e
5
5
  SHA512:
6
- metadata.gz: 8ad3b396d9ab5ad1c004a3363b57108f51709318171a848fb31f167faab95ebbb1ca5827510d86248ffa3b6e1aa37a10024eeb7678ac8a4b553548db7f7612bd
7
- data.tar.gz: 733c04bde42f3ff1a987c77b4221a236c595cd07447be80fb195626f029ddf08d822b1f6868a18bd414bf45755b36ebf6f00d80bad6e997175a0f114889d24cd
6
+ metadata.gz: 27f4f025e16759d0403e121164843047a582057e94874be251d167ad585401dc6125eb88960573bb25b1e9c2e0f8c012ef79548f1c963e2d29910fb1a4b7843d
7
+ data.tar.gz: d78db1e5fb6f70df4cdfef60f5339477c64a4a50f568f89dd6d10b32ee187ac7307543347b952caeeb30983c8fdc92a207ef25823e4b53fcab15436400adf3ed
data/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this gem adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.8.2] - 2026-04-16
11
+
12
+ ### Added
13
+ - README documentation and spec coverage for `Client#head` — request signature, empty-body response contract, and full middleware/retry/pool/interceptor pipeline behavior
14
+
10
15
  ## [0.8.1] - 2026-04-07
11
16
 
12
17
  ### Added
data/README.md CHANGED
@@ -396,6 +396,21 @@ client.get("/users")
396
396
  # Prints: GET https://api.example.com/users -> 200 (0.234s)
397
397
  ```
398
398
 
399
+ ### HEAD requests
400
+
401
+ Issue a HEAD request to retrieve response headers without downloading the body. The call mirrors `#get` — same options, same middleware/retry/pool pipeline — but the returned `Response#body` is always the empty string:
402
+
403
+ ```ruby
404
+ response = client.head("/resource", headers: { "If-None-Match" => "abc123" })
405
+
406
+ response.status # => 200
407
+ response.body # => ""
408
+ response.headers["etag"] # => "W/\"abc123\""
409
+ response.headers["content-length"] # => "1024"
410
+ ```
411
+
412
+ HEAD requests honor `params`, `headers`, `timeout`, `expect`, and `request_id` just like GET.
413
+
399
414
  ### All HTTP methods
400
415
 
401
416
  ```ruby
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Philiprehberger
4
4
  module HttpClient
5
- VERSION = '0.8.1'
5
+ VERSION = '0.8.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: philiprehberger-http_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Rehberger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-07 00:00:00.000000000 Z
11
+ date: 2026-04-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A zero-dependency HTTP client built on Ruby's net/http with automatic
14
14
  retries, request/response interceptors, and a clean API for JSON services.