diff options
author | Gary Kim <gary@garykim.dev> | 2020-08-30 07:49:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-30 13:49:26 +0200 |
commit | a0741d99b80d7da1c063853382756b3a9689f6a7 (patch) | |
tree | 86b6954d34558fe3a753284dea52928a031edc7a /vendor/github.com/monaco-io/request/model.go | |
parent | c63f08c8113598149f312bffd3fbdf1970660639 (diff) | |
download | matterbridge-msglm-a0741d99b80d7da1c063853382756b3a9689f6a7.tar.gz matterbridge-msglm-a0741d99b80d7da1c063853382756b3a9689f6a7.tar.bz2 matterbridge-msglm-a0741d99b80d7da1c063853382756b3a9689f6a7.zip |
Add TLSConfig to nctalk (#1195)
Signed-off-by: Gary Kim <gary@garykim.dev>
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 |