Sounds good. Will ping around Dec 1 assuming the tree is back open. Thanks for taking a look, Brad.On Wed Nov 12 2014 at 1:00:35 PM Brad Fitzpatrick <brad...@golang.org> wrote:Sorry, I missed this CL earlier. The tree is closed in any case.Please ping this thread after Go 1.4 is out (and copy golang-dev@ in this case), around December 1st, and we can discuss. I could go either on this. Others may have opinions.On Wed, Oct 1, 2014 at 2:32 AM, <andy...@chromium.org> wrote:Reviewers: bradfitz,
Description:
net/http: add method constants from RFC 2616.
As defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
Please review this at https://codereview.appspot.com/134550043/
Affected files (+18, -0 lines):
A src/pkg/net/http/methods.go
Index: src/pkg/net/http/methods.go
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/pkg/net/http/methods.go
@@ -0,0 +1,18 @@
+// Copyright 2014 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package http
+
+// HTTP methods, defined in RFC 2616.
+const (
+ MethodHead = "HEAD"
+ MethodGet = "GET"
+ MethodPut = "PUT"
+ MethodPost = "POST"
+ MethodDelete = "DELETE"
+
+ MethodConnect = "CONNECT"
+ MethodOptions = "OPTIONS"
+ MethodTrace = "TRACE"
+)