Skip to content
HTTP message parser written in C
C Python Ruby Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
HTTPParserC.xcodeproj
Sources
.gitignore
.travis.yml
HTTPParserC.podspec
LICENSE
README.md

README.md

HTTP Parser

Build Status Version Carthage Compatible License Platform

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).

Features:

  • 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
  • Content-Length
  • Request method
  • Response status code
  • Transfer-Encoding
  • HTTP version
  • Request URL
  • Message body

Installation

CocoaPods

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 Podfile:

use_frameworks!
pod 'Telegraph'

Then, run the following command:

$ pod install

Carthage

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 Cartfile:

github "Building42/HTTPParserC"

Run carthage update to build the framework and drag the built HTTPParserC.framework into your Xcode project.

Documentation

Visit https://github.com/nodejs/http-parser for more information

You can’t perform that action at this time.