add TLS to Transport Options

This commit is contained in:
Marcelo Pires 2018-09-24 17:14:38 +02:00
parent 12edfd7856
commit 11b176dcbc

View File

@ -1,6 +1,7 @@
package transport package transport
import ( import (
"crypto/tls"
"github.com/thesyncim/faye/message" "github.com/thesyncim/faye/message"
"net/http" "net/http"
"time" "time"
@ -10,6 +11,7 @@ import (
type Options struct { type Options struct {
Headers http.Header Headers http.Header
Cookies http.CookieJar Cookies http.CookieJar
TLS *tls.Config
MaxRetries int MaxRetries int
RetryInterval time.Duration RetryInterval time.Duration