HTTP message parser written in C

What's New

  • Updated http-parser source to 2.9.4
  • Updated iOS deployment target to 9.0 for Xcode 12

HTTP Parser

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


  • 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



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:

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

github "Building42/HTTPParserC"

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


Visit for more information


  • Swift Tools 5.1.0
View More Packages from this Author


  • None
Last updated: Sun Nov 13 2022 19:21:43 GMT-0500 (GMT-05:00)