localproxy

package
v0.1.0-rc.30 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package localproxy forwards one public hostname to one local HTTP target.

Index

Constants

View Source
const DefaultRequestLimit = 500

DefaultRequestLimit bounds active requests to one route's local service, across all visitor connections and HTTP/2 streams.

Variables

This section is empty.

Functions

func New

func New(target, hostname string, requestLimit int) (http.Handler, error)

func NormalizeTarget

func NormalizeTarget(target string) (string, error)

NormalizeTarget validates a local proxy target and returns its canonical HTTP origin.

func Preflight

func Preflight(ctx context.Context, target string) error

Preflight validates target and verifies that it accepts a local TCP connection.

func WaitForTarget

func WaitForTarget(ctx context.Context, target string) error

WaitForTarget waits until a valid target accepts a local TCP connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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