Skip to content

HTTP provider: accept all standard HTTP methods, not just GET/POST/PUT/DELETE #295

Description

@briankane

What

#HTTPDo restricts method to GET | POST | PUT | DELETE, so a PATCH, HEAD or
OPTIONS request fails validation even though runHTTP hands the method to
http.NewRequestWithContext unchanged and would send it fine.

Change

  1. In both pkg/providers/http/http.cue and pkg/providers/legacy/http/http.cue,
    widen the enum, keeping GET as the default:

    method: *"GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH"
  2. Add convenience actions next to #HTTPGet/#HTTPPost/#HTTPPut/#HTTPDelete
    (at least #HTTPPatch; #HTTPHead and #HTTPOptions are cheap to add too), in both
    files.

  3. Widen method in charts/vela-workflow/templates/definitions/request.yaml the same
    way.

  4. Tests: a PATCH and a HEAD request through Do against an httptest.Server
    asserting the server saw that method, and the same for the legacy provider.

Out of scope

Go code changes: none should be needed. If one is, say why in the PR.

Activity

  1. added
    type/enhancement
    good first issue
    on Nov 18, 2026
  2. wesomitsu commented on Nov 19, 2026

    @wesomitsu

    I’d like to take this one. I have a change ready that widens the method enum in both providers and the request definition, adds #HTTPPatch/#HTTPHead/#HTTPOptions, and includes httptest coverage; I’ll open a PR shortly.

  3. added
    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

Labels

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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions