HTTP message parser written in C. It parses both requests and responses. The parser is designed to be used in performance HTTP applications. It does not make any syscalls nor allocations, it does not buffer data, it can be interrupted at anytime. Depending on your architecture, it only requires about 40 bytes of data per message stream (in a web server that is per connection).
- No dependencies
- Handles persistent streams (keep-alive).
- Decodes chunked encoding.
- Upgrade support
- Defends against buffer overflow attacks.
The parser extracts the following information from HTTP messages:
- Header fields and values
- Request method
- Response status code
- HTTP version
- Request URL
- Message body
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate the HTTP Parser C library into your Xcode project using CocoaPods, specify it in your
use_frameworks! pod 'HTTPParserC'
Then, run the following command:
$ pod install
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update $ brew install carthage
To integrate HTTPParserC into your Xcode project using Carthage, specify it in your
carthage update to build the framework and drag the built
HTTPParserC.framework into your Xcode project.
Visit https://github.com/nodejs/http-parser for more information