Skip to content

cuex HTTP provider: add HEAD to the allowed methods #158

Closed

Description

@briankane

What

cue/cuex/providers/http/http.cue allows
GET | POST | PUT | DELETE | PATCH | CONNECT | OPTIONS | TRACE, which is every
standard method except HEAD. Do passes the method to http.NewRequestWithContext
unchanged, so only the schema is in the way.

Change

  1. Add "HEAD" to the method enum in cue/cuex/providers/http/http.cue.
  2. Test: a HEAD request through the provider against an httptest.Server, asserting
    the method the server saw and that an empty body comes back without error.

Activity

  1. added
    type/enhancement
    good first issue
    on Nov 19, 2026
  2. marcus-beauregard commented on Nov 19, 2026

    @marcus-beauregard
    Contributor

    Taking this one: #159 adds HEAD to the method enum, a #Head helper for symmetry with the other methods, and a test that runs a HEAD through the CUE package against an httptest.Server — asserting the method the server saw, the 200 status, and the empty body.

    Package tests pass locally on go1.27.1 (go test ./cue/cuex/providers/http/), gofmt clean. Happy to trim the scope to just the enum + test, or reshape the test, if you'd prefer.

  3. added
    area/cuex
    priority/nice-to-have
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cuexgood first issuepriority/nice-to-havetype/enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions