Skip to content

mdavidsaver/h2test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fun with HTTP/2.0

Experiments with nghttp2 http://nghttp2.org/

Requires:

  • libevent >= 2.0.19
  • nghttp2 >= 0.7.11
git clone https://github.com/mdavidsaver/h2test.git
cd h2test/src
mkdir build
cd build
cmake .. -DNGHTTP2_DIR=/path/to/nghttp2/usr
make

testserver

./testserver 127.0.0.1:5678

Server providing several urls. See src/testserver.cpp

  • /hello - Returns a string
  • /spam - Returns a counter, runs as fast as the client allows
  • /tick - Returns a counter, one line per second.

client

./client 127.0.0.1 5678 /hello

Client which fetches a single stream, rate limited to 100 bytes per second. See src/demo/client.c.

Older tests

  • server404 - Returns 404 for all requests
  • serverspam - Same as testserver w/ /spam
  • servertick - Same as testserver w/ /tick

About

fun with nghttp2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published