http

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package http provides HTTP client and server implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServeUDS added in v0.8.0

func ListenAndServeUDS(s *http.Server, p string) error

ListenAndServeUDS listens for HTTP requests over a UNIX Domain Socket on p.

func ShutdownServerOn added in v0.8.0

func ShutdownServerOn(
	s *http.Server,
	sig os.Signal,
	ctx func() context.Context,
)

ShutdownServerOn listen for sig signal and gracefully shuts down the given server, ctx is a function that provides a context to be used during server shutdown.

Types

This section is empty.

Directories

Path Synopsis
Package middleware provides flexibility at the HTTP request/response process.
Package middleware provides flexibility at the HTTP request/response process.

Jump to

Keyboard shortcuts

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