aboutsummaryrefslogtreecommitdiff
path: root/request.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-07-21 14:23:40 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-07-21 14:23:40 +0200
commit044e297413066262c54beb33e98d0e498178897b (patch)
tree8fa631ebe958f0a480bbe9445ac83c13b36f1d97 /request.go
parentdc7bd11d855f0b3266612a18606801f4e09ecc09 (diff)
downloadgo-schwift-044e297413066262c54beb33e98d0e498178897b.tar.gz
use http.MethodFoo constants where possible
Diffstat (limited to 'request.go')
-rw-r--r--request.go2
1 files changed, 1 insertions, 1 deletions
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