proxy

package
v0.0.0-...-f40e601 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server wraps the HTTP proxy server and its dependencies.

func NewHTTPServer

func NewHTTPServer(mgr *manager.Manager, localPort int) (*Server, error)

NewHTTPServer creates a new HTTP proxy server instance (HTTPS CONNECT removed).

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts the underlying HTTP server.

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown gracefully stops the underlying HTTP server.

Jump to

Keyboard shortcuts

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