http

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPathParam

func GetPathParam(r *http.Request, key string) string

GetPathParam returns the path parameter by key as a string. If the parameter does not exist, returns empty string.

func GetQueryParam

func GetQueryParam(r *http.Request, key string) string

GetQueryParam returns the first query parameter by key as string. Returns empty string if key does not exist.

func NewStdServerFromConfig added in v1.0.0

func NewStdServerFromConfig(cfg *cfg.ServerConfig, h http.Handler) *http.Server

NewStdServerFromConfig creates a standard HTTP server using the provided configuration and handler.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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