gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/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  //goland:noinspection GoUnusedConst
    11  const (
    12  	MethodGet     = "GET"
    13  	MethodHead    = "HEAD"
    14  	MethodPost    = "POST"
    15  	MethodPut     = "PUT"
    16  	MethodPatch   = "PATCH" // RFC 5789
    17  	MethodDelete  = "DELETE"
    18  	MethodConnect = "CONNECT"
    19  	MethodOptions = "OPTIONS"
    20  	MethodTrace   = "TRACE"
    21  )