Giter VIP home page Giter VIP logo

httpserver's Introduction

httpserver

Http server is written on C++14 language.

Dynamic libraries act as applications for the server (*.so - linux, *.dll - windows). Library connection takes place in the configuration file samples/apps.conf by using the parameter server_module.

Sample application code: https://github.com/awwit/httpserverapp

Features

This http server support:

  • HTTP v1.1
  • HTTPS (TLS)
  • HTTP v2 (need optimize cleanup of streams)
  • Keep-Alive
  • WebSocket
  • X-Sendfile (header)
  • Get-Parted requests

Dependencies

Common:

Linux: dl, pthread, rt, gnutls

Windows: ws2_32.lib, libgnutls.dll.a

Build

Linux:

git clone https://github.com/awwit/httpserver.git
cd httpserver
make

or

git clone https://github.com/awwit/httpserver.git
cd httpserver
mkdir build
cd build
qbs build -f ./../projects/qt-creator/httpserver.qbs release

Windows:

git clone https://github.com/awwit/httpserver.git
cd httpserver
mkdir build
cd build
devenv ./../projects/msvs/httpserver.sln /build

Server start

./httpserver --start

Configuration files must be located in the working (current) directory. Or input a parameter --config-path=<path> to set the directory with configuration files.

Use the parameter --server-name=<name> to define the name of web-server's instance. Instances can be used to run web-servers with different settings.

Server configuration

Server (and its applications) setting is made using config-files. Examples of settings are located in the folder samples.

License

The source codes are licensed under the AGPL, the full text of the license is located in the LICENSE file.

httpserver's People

Contributors

awwit avatar wuyougongzi 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.