http

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package http holds a run.Group compatible HTTP Server.

Package http holds a run.Group compatible HTTP Server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SecurityHandler

func SecurityHandler(next http.Handler) http.Handler

SecurityHandler holds a middleware to inject HTTP headers to secure the browser.

Types

type Service

type Service struct {
	Address       string
	SecureHeaders bool

	*http.Server
	// contains filtered or unexported fields
}

Service implements a run.Group compatible HTTP Server.

func (*Service) FlagSet

func (s *Service) FlagSet() *run.FlagSet

FlagSet implements run.Config.

func (*Service) GracefulStop

func (s *Service) GracefulStop()

GracefulStop implements run.Service.

func (*Service) Name

func (s *Service) Name() string

Name implements run.Unit.

func (*Service) Serve

func (s *Service) Serve() error

Serve implements run.Service.

func (*Service) Validate

func (s *Service) Validate() error

Validate implements run.Config.

Jump to

Keyboard shortcuts

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