client

package
v1.40.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package client provides the client interface for 'httpoverrpc'

Package client provides the client interface for 'httpoverrpc'

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPTransporter added in v1.24.0

func NewHTTPTransporter(conn *proxy.Conn, opts ...Option) http.RoundTripper

func WithoutCancel

func WithoutCancel(ctx context.Context) context.Context

WithoutCancel returns a context that is never canceled.

Types

type DialConfigFactory added in v1.39.0

type DialConfigFactory func(req *http.Request) *pb.DialConfig

type HTTPTransporter added in v1.24.0

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

HTTPTransporter implementation of http.RoundTripper, which proxy HTTP requests over RPC to target host to send request from it

func (*HTTPTransporter) RoundTrip added in v1.24.0

func (c *HTTPTransporter) RoundTrip(req *http.Request) (*http.Response, error)

type Option added in v1.24.6

type Option interface {
	// contains filtered or unexported methods
}

func WithCustomDialConfig added in v1.39.0

func WithCustomDialConfig(dialConfigFactory DialConfigFactory) Option

func WithInsecureSkipVerify added in v1.24.6

func WithInsecureSkipVerify(insecureSkipVerify bool) Option

Jump to

Keyboard shortcuts

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