http

package
v1.1.63 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InternalServerError string = "Internal Server Error"
	Unauthorized        string = "Not Authorized"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server added in v1.1.52

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

func NewServer added in v1.1.52

func NewServer(
	addr string,
	handler http.Handler,
	opts ...ServerOption,
) *Server

func (*Server) Start added in v1.1.52

func (s *Server) Start() error

type ServerOption added in v1.1.52

type ServerOption func(*Server)

func WithBackgroundRunner added in v1.1.54

func WithBackgroundRunner(runner *background.Runner) ServerOption

func WithLogger added in v1.1.52

func WithLogger(logger *logger.Logger) ServerOption

func WithTimeout added in v1.1.52

func WithTimeout(timeout time.Duration) ServerOption

Jump to

Keyboard shortcuts

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