github.com/blend/go-sdk@v1.20220411.3/r2/opt_method.go (about) 1 /* 2 3 Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package r2 9 10 import "github.com/blend/go-sdk/webutil" 11 12 // OptMethod sets the request method. 13 func OptMethod(method string) Option { 14 return RequestOption(webutil.OptMethod(method)) 15 } 16 17 // OptGet sets the request method. 18 func OptGet() Option { 19 return RequestOption(webutil.OptGet()) 20 } 21 22 // OptPost sets the request method. 23 func OptPost() Option { 24 return RequestOption(webutil.OptPost()) 25 } 26 27 // OptPut sets the request method. 28 func OptPut() Option { 29 return RequestOption(webutil.OptPut()) 30 } 31 32 // OptPatch sets the request method. 33 func OptPatch() Option { 34 return RequestOption(webutil.OptPatch()) 35 } 36 37 // OptDelete sets the request method. 38 func OptDelete() Option { 39 return RequestOption(webutil.OptDelete()) 40 }