Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 1.22 KB

README.md

File metadata and controls

74 lines (50 loc) · 1.22 KB

simpleHTTP2

Simple implementation of HTTP2 in Golang

Usage

Install

$ go get github.com/ami-GS/GoHPACK
$ go get github.com/ami-GS/simpleHTTP2

or

$ go get github.com/mattn/gom
$ gom install

Change directory and test

$ cd $GOPATH/src/github.com/ami-GS/simpleHTTP2/example
  • Server
$ go run serv_Try.go <server port>
  • Client
$ go run cli_Try.go <server ip> <server port>

Function detail

Client                                         Server

      ----------------------------------------->

            connection preface

      ----------------------------------------->

            Settings frame

      <-----------------------------------------

            Settings frame (Flag ACK)

      ----------------------------------------->

            Headers frame (Flag END_HEADERS)

      <-----------------------------------------

            Data frame

      ----------------------------------------->

            GoAway frame

TODO

  • Implement stream state
  • Colorize output string

Reference

License

The MIT License (MIT) Copyright (c) 2015 ami-GS