github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/gmhttp/method.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package gmhttp 6 7 // Common HTTP methods. 8 // 9 // Unless otherwise noted, these are defined in RFC 7231 section 4.3. 10 const ( 11 MethodGet = "GET" 12 MethodHead = "HEAD" 13 MethodPost = "POST" 14 MethodPut = "PUT" 15 MethodPatch = "PATCH" // RFC 5789 16 MethodDelete = "DELETE" 17 MethodConnect = "CONNECT" 18 MethodOptions = "OPTIONS" 19 MethodTrace = "TRACE" 20 )