infra

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureLogger added in v0.3.0

func ConfigureLogger()

func HTTPError

func HTTPError(writer http.ResponseWriter, err error)

func MakeHTTPClient

func MakeHTTPClient(proxy string) *http.Client

func NewHTTPServerErrorLogger added in v0.6.0

func NewHTTPServerErrorLogger(logger *clog.Logger) *log.Logger

NewHTTPServerErrorLogger creates a standard Go logger that outputs to charmbracelet log with ERROR level.

func WriteCorsHeaders

func WriteCorsHeaders(header http.Header, origin string)

func WriteCorsHeadersForOptions added in v0.6.0

func WriteCorsHeadersForOptions(respHeader http.Header, reqHeader http.Header)

WriteCorsHeadersForOptions writes CORS headers for OPTIONS preflight requests using request headers with fallback to defaults.

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
⌂ 换网址