httpdoc gives you direct access to HTTP documentation straight from your terminal.
httpdoc <something>
$ httpdoc 200 # => Doc about the status code
$ httpdoc content-type # => Doc about the header field
go get github.com/bfontaine/httpdoc
httpdoc requires Go 1.2+.
If you use Homebrew or Linuxbrew you
can install httpdoc with one command:
brew install bfontaine/utils/httpdoc
import (
"fmt"
"github.com/bfontaine/httpdoc/httpdoc"
)
doc := httpdoc.DefaultDoc
code, _ := doc.GetStatusCode("200")
fmt.Println(code.PrettyString())| Resources | Support |
|---|---|
| Standard status codes | ✔ |
| Standard header fields | ✔ |
| Standard methods | ✔ |
rfc: read RFCs in your terminal