Giter Club home page Giter Club logo

h2o's Introduction

H2O - an optimized HTTP server / library implementation

H2O is an optimized HTTP server implementation that can be used either as a standalone server or a library.

Supported Protocols

  • HTTP/1.0 (http and https)
  • HTTP/1.1 (http and https)
  • Websocket (RFC6455, both ws and wss)
  • HTTP/2.0 (draft 14, via Upgrade, NPN, ALPN)

Dependencies

  • OpenSSL (mandatory)
  • libyaml (optional; required when building the server)
  • libuv 1.0.0 (optional; required when using h2o as a library)
  • wslay (optional; required if you need support for websocket)

Benchmark

Written from the ground up, H2O outperforms nginx by more than 2x. The table below is a comparison of request-per-seconds taken using ab -c 500 -n 100000 -k on Ubuntu 14.04 running on VMWare Fusion.

Server \ size of content 6 bytes 4,096 bytes
nginx/1.7.4 (conf) 35,822 32,885
H2O @ 6085457 76,690 67,866

Building and Running the Server

Run the commands below to build and run the H2O server. The last command will read the configuration from examples/h2o.conf and start listening on port 8080. Try accessing http://127.0.0.1:8080/.

$ git submodule update --init --recursive
$ cmake .
$ make h2o
$ ./h2o -c examples/h2o.conf

Building the Library

$ git submodule update --init --recursive
$ cmake .
$ make libh2o

The library is designed to work together with the upcoming libuv version 1.0.0. Examples can be found within the examples/ directory.

h2o's People

Contributors

kazuho avatar kimoto avatar swinghu avatar syohex avatar tatsuhiro-t avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.