summaryrefslogtreecommitdiff
path: root/pkg/test/http.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-30 12:05:55 -0600
committermo khan <mo@mokhan.ca>2025-04-30 12:05:55 -0600
commit6dc20979d287652a849e32696fe3a805df1001ae (patch)
treef88bcc9702ac950b3d644b942de73f7b565d440e /pkg/test/http.go
parent197ef4ee79e7c4881c5c612115326f4e874c9415 (diff)
refactor: extract cookie options
Diffstat (limited to 'pkg/test/http.go')
-rw-r--r--pkg/test/http.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/test/http.go b/pkg/test/http.go
index 280aef6..6c15016 100644
--- a/pkg/test/http.go
+++ b/pkg/test/http.go
@@ -10,9 +10,10 @@ import (
xcontext "github.com/xlgmokha/x/pkg/context"
"github.com/xlgmokha/x/pkg/serde"
"github.com/xlgmokha/x/pkg/x"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/pls"
)
-type RequestOption func(*http.Request) *http.Request
+type RequestOption pls.Option[*http.Request]
func Request(method, target string, options ...RequestOption) *http.Request {
request := httptest.NewRequest(method, target, nil)