Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
/ go-gracehttp Public archive

a simple and graceful HTTP server for Golang

Notifications You must be signed in to change notification settings

buexplain/go-gracehttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gracehttp

golang http 服务优雅重启组件

版本要求

Require Go 1.8+

使用示例

go build ./demo/main.go && ./main
curl http://localhost:1991/slow?ms=1
curl http://localhost:1991/slow?ms=20000
kill -SIGUSR2 pid
curl http://localhost:1991/slow?ms=1

特别说明

本项目克隆于github.com/tabalt/gracehttp,在此对原作者表示感谢。

License

Apache-2.0

About

a simple and graceful HTTP server for Golang

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages