httpserver

command
v0.0.0-...-fb58021 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

README

编写一个 HTTP 服务器,大家视个人不同情况决定完成到哪个环节,但尽量把 1 都做完:

  1. 接收客户端 request,并将 request 中带的 header 写入 response header
  2. 读取当前系统的环境变量中的 VERSION 配置,并写入 response header
  3. Server 端记录访问日志包括客户端 IP,HTTP 返回码,输出到 server 端的标准输出
  4. 当访问 localhost/healthz 时,应返回 200

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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