ing
This commit is contained in:
parent
adb8b71fd1
commit
8fbf210d2c
|
@ -25,7 +25,7 @@ type ConnectionHandlers struct {
|
|||
Concurrency int `json:"concurrency"`
|
||||
KeepAlive time.Duration `json:"keepAlive"`
|
||||
HandshakeTimeout time.Duration `json:"handshakeTimeout"`
|
||||
TLSConfig *tls.Config
|
||||
TLSConfig *tls.Config `json:"-"`
|
||||
validated atomic.Value
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ type Connectors struct {
|
|||
|
||||
Network string `json:"network"`
|
||||
Address string `json:"address"`
|
||||
LocalAddress net.Addr
|
||||
LocalAddress net.Addr `json:"-"`
|
||||
|
||||
stopChan chan struct{}
|
||||
stopWg sync.WaitGroup
|
||||
|
|
|
@ -32,24 +32,24 @@ type Connectors struct {
|
|||
|
||||
URL string `json:"url"`
|
||||
|
||||
RequestHeader http.Header
|
||||
RequestHeader http.Header `json:"-"`
|
||||
Subprotocols []string `json:"subprotocols"`
|
||||
// Jar specifies the cookie jar.
|
||||
// If Jar is nil, cookies are not sent in requests and ignored
|
||||
// in responses.
|
||||
CookieJar http.CookieJar
|
||||
CookieJar http.CookieJar `json:"-"`
|
||||
|
||||
ResponseHandler func(*http.Response)
|
||||
ResponseHandler func(*http.Response) `json:"-"`
|
||||
|
||||
// NetDial specifies the dial function for creating TCP connections. If
|
||||
// NetDial is nil, net.Dial is used.
|
||||
NetDial func(network, addr string) (net.Conn, error)
|
||||
NetDial func(network, addr string) (net.Conn, error) `json:"-"`
|
||||
|
||||
// Proxy specifies a function to return a proxy for a given
|
||||
// Request. If the function returns a non-nil error, the
|
||||
// request is aborted with the provided error.
|
||||
// If Proxy is nil or returns a nil *URL, no proxy is used.
|
||||
Proxy func(*http.Request) (*url.URL, error)
|
||||
Proxy func(*http.Request) (*url.URL, error) `json:"-"`
|
||||
|
||||
serverURL *url.URL
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ type ServerHandler interface {
|
|||
type ServerHandlers struct {
|
||||
web.ServerHandlers
|
||||
|
||||
ErrorServelt Servlet
|
||||
ErrorServelt Servlet `json:"-"`
|
||||
|
||||
// path = context only.
|
||||
// ex) /auth => /auth, /auth/member => /auth
|
||||
|
|
Loading…
Reference in New Issue
Block a user