dhotson / httpparser-php Goto Github PK
View Code? Open in Web Editor NEWA PHP extension for the C http parser from Ruby's Mongrel web server.
A PHP extension for the C http parser from Ruby's Mongrel web server.
=== Http Parser extension for PHP A PHP extension for the C http parser from Ruby's Mongrel web server. === Installation To install, you'll need an environment set up to compile PHP extensions. On Ubuntu, I think you'll need to install the php5-dev package. cd ext phpize ./configure make sudo make install Also add the following to your php.ini file: extension=httpparser.so === Usage $parser = new HttpParser(); $parser->execute("GET http://example.com/ HTTP/1.1\r\nHost: example.com\r\n\r\n", 0); var_dump($parser->getEnvironment()); .. or see simple_server.php for a better example. === Credits The http parser is from Mongrel http://mongrel.rubyforge.org by Zed Shaw. Mongrel Web Server (Mongrel) is copyrighted free software by Zed A. Shaw <zedshaw at zedshaw dot com> You can redistribute it and/or modify it under either the terms of the GPL. Also, a big thank you to Alexey Zakhlestin for doing some code review and cleaning up this PHP extension.
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.