ithewei 5 years ago
parent
commit
a6902a6179
5 changed files with 16 additions and 0 deletions
  1. 3 0
      README.md
  2. 0 0
      docs/API.md
  3. 0 0
      docs/PLAN.md
  4. 10 0
      examples/http_server_test.cpp
  5. 3 0
      readme_cn.md

+ 3 - 0
README.md

@@ -1,4 +1,7 @@
 [![Build Status](https://travis-ci.org/ithewei/libhv.svg?branch=master)](https://travis-ci.org/ithewei/libhv)
+[![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20Windows%20%7C%20Mac-green)](.travis.yml)
+
+[中文版](readme_cn.md)
 
 ## Intro
 

+ 0 - 0
docs/apis.md → docs/API.md


+ 0 - 0
PLAN.md → docs/PLAN.md


+ 10 - 0
examples/http_server_test.cpp

@@ -1,3 +1,9 @@
+/*
+ * sample http server
+ * more detail see examples/httpd
+ *
+ */
+
 #include "HttpServer.h"
 
 int main() {
@@ -17,6 +23,10 @@ int main() {
 
     http_server_t server;
     server.port = 8080;
+    // uncomment to test multi-processes
+    // server.worker_processes = 4;
+    // uncomment to test multi-threads
+    // server.worker_threads = 4;
     server.service = &service;
 
 #if 1

+ 3 - 0
readme_cn.md

@@ -1,4 +1,7 @@
 [![Build Status](https://travis-ci.org/ithewei/libhv.svg?branch=master)](https://travis-ci.org/ithewei/libhv)
+[![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20Windows%20%7C%20Mac-green)](.travis.yml)
+
+[English version](README.md)
 
 ## 简介