summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/monaco-io/request/const.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/monaco-io/request/const.go')
-rw-r--r--vendor/github.com/monaco-io/request/const.go46
1 files changed, 46 insertions, 0 deletions
diff --git a/vendor/github.com/monaco-io/request/const.go b/vendor/github.com/monaco-io/request/const.go
new file mode 100644
index 00000000..d7b108fa
--- /dev/null
+++ b/vendor/github.com/monaco-io/request/const.go
@@ -0,0 +1,46 @@
+package request
+
+const (
+ // ApplicationJSON application/json
+ ApplicationJSON ContentType = "application/json"
+
+ // ApplicationXWwwFormURLEncoded application/x-www-form-urlencoded
+ ApplicationXWwwFormURLEncoded ContentType = "application/x-www-form-urlencoded"
+
+ // MultipartFormData multipart/form-data
+ MultipartFormData ContentType = "multipart/form-data"
+)
+
+const (
+ // OPTIONS http options
+ OPTIONS = "OPTIONS"
+
+ // GET http get
+ GET = "GET"
+
+ // HEAD http head
+ HEAD = "HEAD"
+
+ // POST http post
+ POST = "POST"
+
+ // PUT http put
+ PUT = "PUT"
+
+ // DELETE http delete
+ DELETE = "DELETE"
+
+ // TRACE http trace
+ TRACE = "TRACE"
+
+ // CONNECT http connect
+ CONNECT = "CONNECT"
+
+ // PATCH http patch
+ PATCH = "PATCH"
+)
+
+const (
+ emptyString = ""
+ contentType = "Content-Type"
+)