diff options
Diffstat (limited to 'vendor/github.com/monaco-io/request/model.go')
-rw-r--r-- | vendor/github.com/monaco-io/request/model.go | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/vendor/github.com/monaco-io/request/model.go b/vendor/github.com/monaco-io/request/model.go index 6dd58bca..56016477 100644 --- a/vendor/github.com/monaco-io/request/model.go +++ b/vendor/github.com/monaco-io/request/model.go @@ -1,24 +1,18 @@ package request import ( + "crypto/tls" "net/http" "time" ) -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" -) - // ContentType Content-Type type ContentType string +// Method http method +// TODO: +type Method string + // Client Method /* Method = "OPTIONS" ; Section 9.2 @@ -44,10 +38,13 @@ type Client struct { ProxyURL string ContentType ContentType Cookies []*http.Cookie + TLSConfig *tls.Config // private - client *http.Client - req *http.Request + client *http.Client + requestURL requestURL + req *http.Request + transport *http.Transport } // BasicAuth Add Username:Password as Basic Auth |