ps_http

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(
	ctx context.Context,
	stopAccepting <-chan struct{},
	addr string,
	handler http.Handler,
	serverName string,
) error

Run serves until stopAccepting closes, then waits for active requests. Canceling ctx cancels request contexts and closes remaining connections. Run returns after serving and shutdown have finished.

func SafeTransport

func SafeTransport() *http.Transport

Types

This section is empty.

Jump to

Keyboard shortcuts

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