diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-04-07 08:31:52 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-04-07 11:39:14 -0600 |
commit | 2c1b66315620fda3311f9bdffd0867de1c71dc9e (patch) | |
tree | 83d2c38e8acbf5fef972f654c0ef70b0d8065781 /modules/caddyhttp/reverseproxy/reverseproxy.go | |
parent | 657f0cab17c1597f4f78f15d0b720aa6f9d7fbcb (diff) |
reverseproxy: Remove NTLM transport; refactor and improve docs
Diffstat (limited to 'modules/caddyhttp/reverseproxy/reverseproxy.go')
-rw-r--r-- | modules/caddyhttp/reverseproxy/reverseproxy.go | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/modules/caddyhttp/reverseproxy/reverseproxy.go b/modules/caddyhttp/reverseproxy/reverseproxy.go index 6d0d441..438533c 100644 --- a/modules/caddyhttp/reverseproxy/reverseproxy.go +++ b/modules/caddyhttp/reverseproxy/reverseproxy.go @@ -739,8 +739,19 @@ var hopHeaders = []string{ // DialError is an error that specifically occurs // in a call to Dial or DialContext. -type DialError struct { - error +type DialError struct{ error } + +// TLSTransport is implemented by transports +// that are capable of using TLS. +type TLSTransport interface { + // TLSEnabled returns true if the transport + // has TLS enabled, false otherwise. + TLSEnabled() bool + + // EnableTLS enables TLS within the transport + // if it is not already, using the provided + // value as a basis for the TLS config. + EnableTLS(base *TLSConfig) error } var bufPool = sync.Pool{ |