yeslogic / httpsrv Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 2-Clause "Simplified" License
License: BSD 2-Clause "Simplified" License
any plans to move over to llhttp or some other library?
System configuration:
uname -r
: 4.4.0-17763-Microsoft
(Ubuntu 18.04 LTS)mmc --version
: Mercury Compiler, version rotd-2018-12-10, on x86_64-pc-linux-gnu
Microsoft Windows [Version 10.0.17763.194]
Made the following request http://localhost:8000/test and this is the console output:
httpsrv [srv] add periodic: now=648417, milliseconds=5000
httpsrv [srv] add periodic: now=648418, milliseconds=10000
Started server on 0.0.0.0 port 8000
httpsrv [1:0] new client
httpsrv [2:0] new client
httpsrv [1:1] header: 'Host: localhost:8000'
httpsrv [1:1] header: 'Connection: keep-alive'
httpsrv [1:1] header: 'Cache-Control: max-age=0'
httpsrv [1:1] header: 'Upgrade-Insecure-Requests: 1'
httpsrv [1:1] header: 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36'
httpsrv [1:1] header: 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8'
httpsrv [1:1] header: 'Accept-Encoding: gzip, deflate, br'
httpsrv [1:1] header: 'Accept-Language: en-US,en;q=0.9,de;q=0.8'
httpsrv [1:1] header: 'Cookie: my-cookie=my-cookie-value'
httpsrv [1:1] on_headers_complete: method='GET', request-uri='/test'
httpsrv [3:0] new client
httpsrv [srv] periodic timer
periodic handler A - begin
periodic handler A - end
httpsrv [2:0] on_read_timeout: now=658239, state=IDLE
httpsrv [2:0] close by ../src/httpsrv1.c:742: state=IDLE
httpsrv [1:1] on_read_timeout: now=658239, state=PREPARING_RESPONSE
httpsrv [srv] periodic timer
periodic handler B - begin
periodic handler B - end
httpsrv [3:0] on_read_timeout: now=658524, state=IDLE
httpsrv [3:0] close by ../src/httpsrv1.c:742: state=IDLE
httpsrv [srv] periodic timer
Basically not a single byte is transferred tot he client (no matter if browser or curl).
Works fine the the hlc grade.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.