server

package
v0.0.0-...-57f3b98 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: BSD-3-Clause Imports: 8 Imported by: 2

README

http.server

Handles graceful shutdown for http servers, as well as sane defaults for payloads (max body size).

Documentation

Index

Constants

View Source
const (
	MaxBytesSize = 1 << 20 // 1 MB

)

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(port string, handler http.Handler)

ListenAndServe starts the HTTP server with some sane defaults.

Types

This section is empty.

Jump to

Keyboard shortcuts

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