Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpClient ¶
NewHttpClient returns a http.Client that can be used exactly as any other http.Client but will route requests over a Ziti network using the host name as the Ziti service name. Supplying a tlsConfig is possible to connect to HTTPS services, but for it to be successful, the Ziti service name MUST be in the servers URI SANs.
Types ¶
type ZitiTransport ¶
type ZitiTransport struct {
http.Transport
Context ziti.Context
TlsConfig *tls.Config
// contains filtered or unexported fields
}
ZitiTransport wraps the default http.RoundTripper implementation with Ziti edge.Conn pooling
func NewZitiTransport ¶
func NewZitiTransport(ctx ziti.Context, clientTlsConfig *tls.Config) *ZitiTransport
NewZitiTransport returns a new http.Transport that routes HTTP requests and response over a Ziti network.
func (*ZitiTransport) DialContext ¶
func (*ZitiTransport) DialTLSContext ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
example
module
|
|
|
call
command
|
|
|
chat-client
command
|
|
|
chat-server
command
|
|
|
curlz
command
|
|
|
reflect
command
|
|
|
simple-server
command
|
|
|
zcat
command
|
|
|
grpc-example/grpc-client
module
|
|
|
grpc-example/grpc-server
module
|
|
|
exercises
|
|
|
http/client/before
command
|
|
|
http/client/zitified
command
|
|
|
http/server/before
command
|
|
|
http/server/zitified
command
|
|
|
sample
command
|
|
Click to show internal directories.
Click to hide internal directories.