4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-07 18:14:03 +00:00

Add TLSConfig to nctalk (#1195)

Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
Gary Kim
2020-08-30 07:49:26 -04:00
committed by GitHub
parent c63f08c811
commit a0741d99b8
52 changed files with 12389 additions and 368 deletions

View File

@ -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