http

package
v0.0.0-...-3faa176 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(hostExists autocert.HostPolicy) (*http.Server, error)

NewServer returns a HTTP(S) capable server

Types

type Dialer

type Dialer interface {
	DialContext(context.Context, string, string) (net.Conn, error)
}

Dialer interface describes the minimun methods a Proxy needs

type Proxy

type Proxy struct {
	httputil.ReverseProxy
}

Proxy reverse proxies requests though router

func (*Proxy) Initialize

func (h *Proxy) Initialize(router Dialer)

Initialize sets up this proxy's transport to dial though Router instead of doing classic network dials

Jump to

Keyboard shortcuts

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