Skip to content

Commit 4ea2ab9

Browse files
authored
Update httpclient_methods.go
1 parent 62ffc68 commit 4ea2ab9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

httpclient/httpclient_methods.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// httpclient_methods.go
2+
/* Ref: https://www.rfc-editor.org/rfc/rfc7231#section-8.1.3
3+
4+
+---------+------+------------+
5+
| Method | Safe | Idempotent |
6+
+---------+------+------------+
7+
| CONNECT | no | no |
8+
| DELETE | no | yes |
9+
| GET | yes | yes |
10+
| HEAD | yes | yes |
11+
| OPTIONS | yes | yes |
12+
| POST | no | no |
13+
| PUT | no | yes |
14+
| TRACE | yes | yes |
15+
+---------+------+------------+
16+
*/
117
package httpclient
218

319
import "net/http"

0 commit comments

Comments
 (0)