github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/kit/httptransport/httpx/httpx_method.go (about) 1 package httpx 2 3 import "net/http" 4 5 type Method struct{} 6 7 type MethodGet struct{} 8 9 func (MethodGet) Method() string { return http.MethodGet } 10 11 type MethodHead struct{} 12 13 func (MethodHead) Method() string { return http.MethodHead } 14 15 type MethodPost struct{} 16 17 func (MethodPost) Method() string { return http.MethodPost } 18 19 type MethodPut struct{} 20 21 func (MethodPut) Method() string { return http.MethodPut } 22 23 type MethodPatch struct{} 24 25 func (MethodPatch) Method() string { return http.MethodPatch } 26 27 type MethodDelete struct{} 28 29 func (MethodDelete) Method() string { return http.MethodDelete } 30 31 type MethodConnect struct{} 32 33 func (MethodConnect) Method() string { return http.MethodConnect } 34 35 type MethodOptions struct{} 36 37 func (MethodOptions) Method() string { return http.MethodOptions } 38 39 type MethodTrace struct{} 40 41 func (MethodTrace) Method() string { return http.MethodTrace }