From 044e297413066262c54beb33e98d0e498178897b Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Tue, 21 Jul 2026 14:23:40 +0200 Subject: use http.MethodFoo constants where possible --- request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'request.go') diff --git a/request.go b/request.go index 52b457d..2ca98c0 100644 --- a/request.go +++ b/request.go @@ -59,7 +59,7 @@ func cloneRequestOptions(orig *RequestOptions, additional Headers) *RequestOptio // Request contains the parameters that can be set in a request to the Swift API. type Request struct { - Method string // "GET", "HEAD", "PUT", "POST" or "DELETE" + Method string // e.g. http.MethodGet, or a string literal like "COPY" ContainerName string // empty for requests on accounts ObjectName string // empty for requests on accounts/containers Options *RequestOptions -- cgit v1.3.1