http

package
v0.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Name      string
	Namespace string
	Type      string
	Domain    string
	Port      string
	K8s       bool
}

type Parser

type Parser struct {
	ClusterDomain string
}

func (*Parser) ParseHost

func (p *Parser) ParseHost(h string, https bool) (*Host, error)

type Proxy

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

func NewProxy

func NewProxy(k8sc *k8s.Api) *Proxy

func (*Proxy) Do

func (p *Proxy) Do(r *http.Request, _ *goproxy.ProxyCtx) (*http.Request, *http.Response)

func (*Proxy) HijackConnect

func (p *Proxy) HijackConnect(r *http.Request, client net.Conn, _ *goproxy.ProxyCtx)

Jump to

Keyboard shortcuts

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