├── vendor ├── golang.org │ └── x │ │ └── net │ │ ├── codereview.cfg │ │ ├── http2 │ │ ├── .gitignore │ │ ├── h2demo │ │ │ ├── rootCA.srl │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ ├── README │ │ │ ├── server.crt │ │ │ ├── rootCA.pem │ │ │ ├── rootCA.key │ │ │ └── server.key │ │ ├── Makefile │ │ ├── not_go16.go │ │ ├── errors_test.go │ │ ├── README │ │ ├── gotrack_test.go │ │ ├── flow.go │ │ ├── flow_test.go │ │ ├── fixed_buffer.go │ │ ├── Dockerfile │ │ └── headermap.go │ │ ├── .gitignore │ │ ├── html │ │ ├── charset │ │ │ └── testdata │ │ │ │ ├── UTF-16BE-BOM.html │ │ │ │ ├── UTF-16LE-BOM.html │ │ │ │ └── README │ │ ├── testdata │ │ │ └── webkit │ │ │ │ ├── pending-spec-changes-plain-text-unsafe.dat │ │ │ │ ├── scripted │ │ │ │ ├── adoption01.dat │ │ │ │ └── webkit01.dat │ │ │ │ ├── adoption02.dat │ │ │ │ ├── inbody01.dat │ │ │ │ ├── isindex.dat │ │ │ │ ├── tests4.dat │ │ │ │ ├── tests24.dat │ │ │ │ ├── tests14.dat │ │ │ │ ├── pending-spec-changes.dat │ │ │ │ ├── README │ │ │ │ └── tests12.dat │ │ ├── example_test.go │ │ └── entity_test.go │ │ ├── README │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── ipv4 │ │ ├── thunk_linux_386.s │ │ ├── sys_stub.go │ │ ├── sockopt_stub.go │ │ ├── payload.go │ │ ├── mocktransponder_test.go │ │ ├── sockopt_asmreqn_stub.go │ │ ├── sockopt_ssmreq_stub.go │ │ ├── icmp_stub.go │ │ ├── helper_stub.go │ │ ├── control_stub.go │ │ ├── sockopt_asmreq_stub.go │ │ ├── icmp_linux.go │ │ ├── zsys_netbsd.go │ │ ├── zsys_openbsd.go │ │ ├── control_windows.go │ │ ├── zsys_dragonfly.go │ │ ├── genericopt_stub.go │ │ ├── syscall_unix.go │ │ ├── syscall_linux_386.go │ │ ├── control_pktinfo.go │ │ ├── defs_netbsd.go │ │ ├── defs_openbsd.go │ │ ├── defs_dragonfly.go │ │ ├── control_bsd.go │ │ ├── sockopt_asmreqn_unix.go │ │ ├── sys_openbsd.go │ │ ├── sys_bsd.go │ │ ├── helper_unix.go │ │ ├── iana.go │ │ ├── helper_windows.go │ │ ├── sockopt_asmreq_unix.go │ │ ├── payload_nocmsg.go │ │ ├── genericopt_posix.go │ │ ├── sockopt_asmreq_windows.go │ │ ├── helper.go │ │ ├── zsys_solaris.go │ │ ├── sockopt_ssmreq_unix.go │ │ ├── icmp.go │ │ ├── sys_windows.go │ │ ├── sockopt.go │ │ ├── defs_solaris.go │ │ └── sockopt_asmreq.go │ │ ├── ipv6 │ │ ├── thunk_linux_386.s │ │ ├── sys_stub.go │ │ ├── sockopt_stub.go │ │ ├── payload.go │ │ ├── helper_stub.go │ │ ├── sockopt_ssmreq_stub.go │ │ ├── icmp_stub.go │ │ ├── control_stub.go │ │ ├── icmp_solaris.go │ │ ├── sockopt_asmreq_windows.go │ │ ├── sockopt_asmreq_unix.go │ │ ├── icmp_windows.go │ │ ├── icmp_linux.go │ │ ├── mocktransponder_test.go │ │ ├── control_windows.go │ │ ├── icmp_bsd.go │ │ ├── syscall_unix.go │ │ ├── genericopt_stub.go │ │ ├── syscall_linux_386.go │ │ ├── helper_unix.go │ │ ├── helper.go │ │ ├── helper_windows.go │ │ ├── header_test.go │ │ ├── payload_nocmsg.go │ │ ├── genericopt_posix.go │ │ ├── header.go │ │ ├── sockopt_ssmreq_unix.go │ │ ├── icmp.go │ │ ├── control_rfc2292_unix.go │ │ ├── sys_windows.go │ │ ├── zsys_netbsd.go │ │ └── sockopt.go │ │ ├── internal │ │ └── nettest │ │ │ ├── rlimit_windows.go │ │ │ ├── rlimit_stub.go │ │ │ ├── error_stub.go │ │ │ ├── rlimit.go │ │ │ ├── stack_stub.go │ │ │ ├── rlimit_unix.go │ │ │ ├── stack_unix.go │ │ │ ├── error_posix.go │ │ │ ├── stack.go │ │ │ └── stack_windows.go │ │ ├── icmp │ │ ├── sys_freebsd.go │ │ ├── helper.go │ │ ├── ipv6.go │ │ ├── listen_stub.go │ │ ├── timeexceeded.go │ │ ├── dstunreach.go │ │ ├── packettoobig.go │ │ ├── messagebody.go │ │ ├── echo.go │ │ ├── example_test.go │ │ ├── ipv4.go │ │ ├── helper_posix.go │ │ └── paramprob.go │ │ ├── .gitattributes │ │ ├── proxy │ │ ├── direct.go │ │ └── per_host_test.go │ │ ├── webdav │ │ └── internal │ │ │ └── xml │ │ │ ├── README │ │ │ └── atom_test.go │ │ ├── bpf │ │ ├── testdata │ │ │ ├── all_instructions.bpf │ │ │ └── all_instructions.txt │ │ └── asm.go │ │ ├── websocket │ │ ├── examplehandler_test.go │ │ └── exampledial_test.go │ │ ├── context │ │ └── withtimeout_test.go │ │ ├── CONTRIBUTING.md │ │ ├── idna │ │ └── idna_test.go │ │ ├── netutil │ │ └── listen.go │ │ ├── PATENTS │ │ ├── LICENSE │ │ └── trace │ │ └── trace_test.go ├── LAST_UPDATE.txt └── github.com │ └── fatih │ └── color │ ├── .travis.yml │ ├── vendor │ ├── github.com │ │ └── mattn │ │ │ ├── go-isatty │ │ │ ├── doc.go │ │ │ ├── isatty_appengine.go │ │ │ ├── _example │ │ │ │ └── example.go │ │ │ ├── isatty_linux.go │ │ │ ├── isatty_solaris.go │ │ │ ├── isatty_bsd.go │ │ │ ├── isatty_windows.go │ │ │ ├── README.md │ │ │ └── LICENSE │ │ │ └── go-colorable │ │ │ ├── _example │ │ │ └── main.go │ │ │ ├── colorable_others.go │ │ │ ├── README.md │ │ │ └── LICENSE │ └── manifest │ └── LICENSE.md ├── doc ├── h2c-dump.png └── h2c-cmdline.png ├── .gitignore ├── cli ├── cmdline │ ├── startcmd.go │ ├── startcmd_windows.go │ └── config_test.go ├── util │ └── util.go ├── rpc │ ├── ipc.go │ ├── marshaller.go │ ├── ipc_windows.go │ └── ipc_default.go └── shellrunner.go ├── http2client ├── version.go ├── internal │ ├── util │ │ ├── util.go │ │ ├── repeatedTask.go │ │ └── asyncTask.go │ └── eventloop │ │ └── commands │ │ └── pingCmd.go └── frames │ ├── context.go │ ├── decodingUtil.go │ ├── util.go │ ├── rstStreamFrame.go │ ├── goAwayFrame.go │ ├── windowUpdateFrame.go │ ├── priorityFrame.go │ ├── dataFrame.go │ ├── errorCode.go │ ├── pingFrame.go │ └── decodingUtil_test.go ├── main.go ├── arquillian-tests ├── src │ └── test │ │ ├── java │ │ └── de │ │ │ └── consol │ │ │ └── labs │ │ │ └── h2c │ │ │ └── client │ │ │ ├── OutputCapturingStream.java │ │ │ ├── H2cBackgroundProcess.java │ │ │ └── H2c.java │ │ └── resources │ │ └── arquillian.xml └── README.md ├── update-vendor-sources.sh └── release.sh /vendor/golang.org/x/net/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /vendor/LAST_UPDATE.txt: -------------------------------------------------------------------------------- 1 | LAST UPDATE: Sun May 8 08:43:36 CEST 2016 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/h2demo/rootCA.srl: -------------------------------------------------------------------------------- 1 | E2CE26BF3285059C 2 | -------------------------------------------------------------------------------- /doc/h2c-dump.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fstab/h2c/HEAD/doc/h2c-dump.png -------------------------------------------------------------------------------- /doc/h2c-cmdline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fstab/h2c/HEAD/doc/h2c-cmdline.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | h2c-v*.zip 3 | arquillian-tests/h2c.iml 4 | arquillian-tests/target/ 5 | -------------------------------------------------------------------------------- /vendor/github.com/fatih/color/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.6 4 | - tip 5 | 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/Makefile: -------------------------------------------------------------------------------- 1 | curlimage: 2 | docker build -t gohttp2/curl . 3 | 4 | -------------------------------------------------------------------------------- /cli/cmdline/startcmd.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package cmdline 4 | 5 | var StartCmd = "h2c start &" 6 | -------------------------------------------------------------------------------- /cli/cmdline/startcmd_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package cmdline 4 | 5 | var StartCmd = "start /B h2c start" 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/.gitignore: -------------------------------------------------------------------------------- 1 | # Add no patterns to .hgignore except for files generated by the build. 2 | last-change 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/h2demo/.gitignore: -------------------------------------------------------------------------------- 1 | h2demo 2 | h2demo.linux 3 | client-id.dat 4 | client-secret.dat 5 | token.dat 6 | -------------------------------------------------------------------------------- /http2client/version.go: -------------------------------------------------------------------------------- 1 | package http2client 2 | 3 | const ( 4 | VERSION = "v0.0.13-SNAPSHOT" 5 | BUILD_DATE = "2016-05-08" 6 | ) 7 | -------------------------------------------------------------------------------- /vendor/github.com/fatih/color/vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fstab/h2c/HEAD/vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fstab/h2c/HEAD/vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html -------------------------------------------------------------------------------- /vendor/golang.org/x/net/README: -------------------------------------------------------------------------------- 1 | This repository holds supplementary Go networking libraries. 2 | 3 | To submit changes to this repository, see http://golang.org/doc/contribute.html. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /http2client/internal/util/util.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | func SliceContainsString(slice []string, s string) bool { 4 | for _, element := range slice { 5 | if element == s { 6 | return true 7 | } 8 | } 9 | return false 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/pending-spec-changes-plain-text-unsafe.dat: -------------------------------------------------------------------------------- 1 | #data 2 | fillertext 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | "fillertext" 9 | |
10 | -------------------------------------------------------------------------------- /cli/util/util.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import "github.com/fstab/h2c/http2client/frames" 4 | 5 | func SliceContainsFrameType(s []frames.Type, t frames.Type) bool { 6 | for _, e := range s { 7 | if e == t { 8 | return true 9 | } 10 | } 11 | return false 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/thunk_linux_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.2 6 | 7 | TEXT ·socketcall(SB),4,$0-36 8 | JMP syscall·socketcall(SB) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/thunk_linux_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.2 6 | 7 | TEXT ·socketcall(SB),4,$0-36 8 | JMP syscall·socketcall(SB) 9 | -------------------------------------------------------------------------------- /cli/rpc/ipc.go: -------------------------------------------------------------------------------- 1 | package rpc 2 | 3 | import "net" 4 | 5 | // IpcManager maintains the socket for communication between the cli and the h2c process. 6 | type IpcManager interface { 7 | IsListening() bool 8 | Listen() (net.Listener, error) 9 | Dial() (net.Conn, error) 10 | InUseErrorMessage() string 11 | } 12 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "github.com/fstab/h2c/cli" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | msg, err := cli.Run() 11 | if err != nil { 12 | fmt.Fprintf(os.Stderr, "%v\n", err.Error()) 13 | os.Exit(-1) 14 | } else if msg != "" { 15 | fmt.Println(msg) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/h2demo/Makefile: -------------------------------------------------------------------------------- 1 | h2demo.linux: h2demo.go 2 | GOOS=linux go build --tags=h2demo -o h2demo.linux . 3 | 4 | FORCE: 5 | 6 | upload: FORCE 7 | go install golang.org/x/build/cmd/upload 8 | upload --verbose --osarch=linux-amd64 --tags=h2demo --file=go:golang.org/x/net/http2/h2demo --public http2-demo-server-tls/h2demo 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/nettest/rlimit_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package nettest 6 | 7 | func maxOpenFiles() int { return 4 * defaultMaxOpenFiles /* actually it's 16581375 */ } 8 | -------------------------------------------------------------------------------- /vendor/github.com/fatih/color/vendor/github.com/mattn/go-isatty/isatty_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on on appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/nettest/rlimit_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build nacl plan9 6 | 7 | package nettest 8 | 9 | func maxOpenFiles() int { return defaultMaxOpenFiles } 10 | -------------------------------------------------------------------------------- /vendor/github.com/fatih/color/vendor/github.com/mattn/go-isatty/_example/example.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "github.com/mattn/go-isatty" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | if isatty.IsTerminal(int(os.Stdout.Fd())) { 11 | fmt.Println("Is Terminal") 12 | } else { 13 | fmt.Println("Is Not Terminal") 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/icmp/sys_freebsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package icmp 6 | 7 | import "syscall" 8 | 9 | func init() { 10 | freebsdVersion, _ = syscall.SysctlUint32("kern.osreldate") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/nettest/error_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build nacl plan9 6 | 7 | package nettest 8 | 9 | func protocolNotSupported(err error) bool { 10 | return false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sys_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build nacl plan9 solaris 6 | 7 | package ipv4 8 | 9 | var ( 10 | ctlOpts = [ctlMax]ctlOpt{} 11 | 12 | sockOpts = [ssoMax]sockOpt{} 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/sys_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build nacl plan9 solaris 6 | 7 | package ipv6 8 | 9 | var ( 10 | ctlOpts = [ctlMax]ctlOpt{} 11 | 12 | sockOpts = [ssoMax]sockOpt{} 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sockopt_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build nacl plan9 solaris 6 | 7 | package ipv4 8 | 9 | func setInt(fd int, opt *sockOpt, v int) error { 10 | return errOpNoSupport 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go16.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.6 6 | 7 | package http2 8 | 9 | import "net/http" 10 | 11 | func configureTransport(t1 *http.Transport) (*Transport, error) { 12 | return nil, errTransportVersion 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/scripted/adoption01.dat: -------------------------------------------------------------------------------- 1 | #data 2 |

TEXT 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | |

9 | | 10 | | id="B" 11 | | 3 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | "1" 9 | | 4 15 | #errors 16 | #document 17 | | 18 | | 19 | | 20 | | "1" 21 | |