h2spec

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2014 License: MIT Imports: 9 Imported by: 0

README

h2spec

h2spec is a conformance test tool for HTTP/2 server.
This tool supports draft-ietf-httpbis-http2-14.

Install

Go to the releases page, find the version you want, and download the zip file.

Usage

$ h2spec --help
Usage: h2spec [OPTIONS]

Options:
  -p:     Target port. (Default: 80)
  -h:     Target host. (Default: 127.0.0.1)
  --help: Display this help and exit.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintFooter

func PrintFooter()

func PrintHeader

func PrintHeader(title string, i int)

func PrintResult

func PrintResult(result bool, desc string, msg string, i int)

func Run

func Run(ctx *Context)

func SetReadTimer

func SetReadTimer(conn net.Conn, sec time.Duration)

func TestConnectionErrorHandling

func TestConnectionErrorHandling(ctx *Context)

func TestData

func TestData(ctx *Context)

func TestErrorHandling

func TestErrorHandling(ctx *Context)

func TestFrameSize

func TestFrameSize(ctx *Context)

func TestHeaderCompressionAndDecompression

func TestHeaderCompressionAndDecompression(ctx *Context)

func TestHeaders

func TestHeaders(ctx *Context)

func TestHttp2ConnectionPreface

func TestHttp2ConnectionPreface(ctx *Context)

func TestStreamIdentifiers

func TestStreamIdentifiers(ctx *Context)

func TestStreamStates

func TestStreamStates(ctx *Context)

Types

type Context

type Context struct {
	Port int
	Host string
}

func (*Context) Authority

func (ctx *Context) Authority() (authority string)

type Http2Conn

type Http2Conn struct {
	// contains filtered or unexported fields
}

func CreateHttp2Conn

func CreateHttp2Conn(ctx *Context, sn bool) *Http2Conn

type TcpConn

type TcpConn struct {
	// contains filtered or unexported fields
}

func CreateTcpConn

func CreateTcpConn(ctx *Context) *TcpConn

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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