h2c

command module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

README

h2c - A Simple Command-Line HTTP/2 Client

h2c is a simple command-line client for HTTP/2 servers.

It is currently in a very early stage. The best way to learn about it is to read the blog posts on http://blog.http2client.net.

Screenshots

h2c dump

h2c commandline

Basic Usage

h2c start &
h2c connect 127.0.0.1:443
h2c get /index.html
h2c stop

How to Download and Run

Binary releases are available on the GitHub Releases.

  1. Download the latest release ZIP file: h2c-v0.0.7.zip
  2. Extract the ZIP file
  3. Find the executable for your system in the bin folder:
  • Linux: h2c_linux_amd64
  • OS X: h2c_darwin_amd64
  • Windows: h2c_windows_amd64.exe
  1. Rename that executable to h2c, or h2c.exe on Windows
  2. Move the executable into a folder on your PATH.

How to Build from Source

h2c is developed with go 1.4.2. With go set up, you can download, compile, and install h2c as follows:

go get github.com/fstab/h2c

h2c uses parts of Brad Fitzpatrick's HTTP/2 support for Go. There is an HTTP/2 console debugger included in bradfitz/http2, but just like h2c, it is currently only a quick few hour hack, so it is hard to tell if they aim at the same kind of tool.

LICENSE

h2c is licensed under the Apache License, Version 2.0.

h2c is implemented in Go and uses Go's standard library, which is licensed under Google's Go license, which is a variant of the BSD License.

The following 3rd party libraries are used:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cli
Package cli implements the h2c command line interface.
Package cli implements the h2c command line interface.
cmdline
Package cmdline implements the parser for the command line arguments.
Package cmdline implements the parser for the command line arguments.
daemon
Package daemon implements the h2c process, i.e, the process started with 'h2c start'.
Package daemon implements the h2c process, i.e, the process started with 'h2c start'.
rpc
Package rpc implements the communication between the h2c command line interface and the h2c process.
Package rpc implements the communication between the h2c command line interface and the h2c process.
Package http2client is a HTTP/2 client library.
Package http2client is a HTTP/2 client library.

Jump to

Keyboard shortcuts

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