...
Run Format

Source file src/net/http/method.go

Documentation: net/http

     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 http
     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  )
    21  

View as plain text