tfhttp

package
v0.0.0-...-d1695c4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Timeout   time.Duration
	URIPrefix string

	DefaultAddress string
	DefaultPort    int
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(globalPrefix, predictPrefix string, staticRoot string) *Proxy

func (*Proxy) PredictHandler

func (proxy *Proxy) PredictHandler(w http.ResponseWriter, req *http.Request)

func (*Proxy) ProxyStreams

func (proxy *Proxy) ProxyStreams(w http.ResponseWriter, req *http.Request)

func (*Proxy) ServeHTTP

func (proxy *Proxy) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*Proxy) ServingProxyHandler

func (proxy *Proxy) ServingProxyHandler(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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