You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HTTP provider: accept all standard HTTP methods, not just GET/POST/PUT/DELETE #295
#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
In both pkg/providers/http/http.cue and pkg/providers/legacy/http/http.cue,
widen the enum, keeping GET as the default:
Add convenience actions next to #HTTPGet/#HTTPPost/#HTTPPut/#HTTPDelete
(at least #HTTPPatch; #HTTPHead and #HTTPOptions are cheap to add too), in both
files.
Widen method in charts/vela-workflow/templates/definitions/request.yaml the same
way.
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.
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.
Activity
wesomitsu commentedon Nov 19, 2026
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.