We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d75391a commit 0b314e1Copy full SHA for 0b314e1
src/net/http/method.go
@@ -0,0 +1,20 @@
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 5741
16
+ MethodDelete = "DELETE"
17
+ MethodConnect = "CONNECT"
18
+ MethodOptions = "OPTIONS"
19
+ MethodTrace = "TRACE"
20
+)
0 commit comments