httpdoc

command module
v0.0.0-...-3877e5c Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: MIT Imports: 4 Imported by: 0

README

httpdoc

httpdoc gives you direct access to HTTP documentation straight from your terminal.

GoDoc Build Status

Usage

httpdoc <something>
Examples
$ httpdoc 200           # => Doc about the status code
$ httpdoc content-type  # => Doc about the header field

Install

go get github.com/bfontaine/httpdoc

httpdoc requires Go 1.2+.

Using Homebrew

If you use Homebrew or Linuxbrew you can install httpdoc with one command:

brew install bfontaine/utils/httpdoc

Go API

import (
    "fmt"
    "github.com/bfontaine/httpdoc/httpdoc"
)

doc := httpdoc.DefaultDoc
code, _ := doc.GetStatusCode("200")
fmt.Println(code.PrettyString())

Support

Resources Support
Standard status codes
Standard header fields
Standard methods

See Also

  • rfc: read RFCs in your terminal

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/stretchr/testify/assert
A set of comprehensive testing tools for use with the normal Go testing system.
A set of comprehensive testing tools for use with the normal Go testing system.
_workspace/src/github.com/stretchr/testify/require
Alternative testing tools which stop test execution if test failed.
Alternative testing tools which stop test execution if test failed.
_workspace/src/gopkg.in/yaml.v2
Package yaml implements YAML support for the Go language.
Package yaml implements YAML support for the Go language.

Jump to

Keyboard shortcuts

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