client

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSGNLHTTPClientWithProxy

func NewSGNLHTTPClientWithProxy(timeout time.Duration, userAgent string, client v1proxy.ProxyServiceClient) *http.Client

NewSGNLHTTPClientWithProxy for proxying http requests based on the Connector context present in the request.

Types

type Transport

type Transport struct {
	// contains filtered or unexported fields
}

Transport with proxy client.

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implementation to either call the underlying default HTTP transport or proxy the request to the connector service using the proxy client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL