From 2721743169717ba6767b0beb63066342daaccabe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 14 Aug 2021 21:00:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8E=92=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2c3e712..7c3bcfa 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
- Shinsako
+ Shinsako

simple-http-server

A variant of Tinyhttpd.

@@ -8,7 +8,7 @@ > > Modified June 2021 by Fumiama(源文雨) -# Protocol +## Protocol A necessary subset of `HTTP 1.0` with following options of request header being supported. ### From client @@ -26,13 +26,13 @@ A necessary subset of `HTTP 1.0` with following options of request header being - 500 Internal Server Error - 501 Method Not Implemented -# Features +## Features 1. Serve files 2. CGI 3. Listen on `ipv6` 4. Multi-thread -# Compile +## Compile ```bash git clone https://github.com/fumiama/simple-http-server.git cd simple-http-server @@ -43,7 +43,7 @@ make make install ``` -# Command line usage +## Command line usage ```bash simple-http-server [-d] [-p ] [-r ] [-u ] ``` @@ -53,7 +53,7 @@ simple-http-server [-d] [-p ] [-r ] [-u ] - **-r**: http root dir. - **-u**: run as this uid. -# CGI usage +## CGI usage When you put an executable file into the web path, the server will call `execl` to run it while passing 3 parameters as below ```c