Download the PHP package vircom/http-parser without Composer
On this page you can find all versions of the php package vircom/http-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download vircom/http-parser
More information about vircom/http-parser
Files in vircom/http-parser
Download vircom/http-parser
More information about vircom/http-parser
Files in vircom/http-parser
Vendor vircom
Package http-parser
Short Description HTTP requests and responses parser library
License MIT
Package http-parser
Short Description HTTP requests and responses parser library
License MIT
Please rate this library. Is it a good library?
Informations about the package http-parser
vircom/http-parser
This package provides an implementation to parse raw HTTP request and responses.
Prerequisites
- PHP 7.4+
Installation
Install by composer
To install vircom/http-parser with Composer, run the following command:
You can see this library on Packagist.
Composer installs autoloader at ./vendor/autoloader.php
. If you use vircom/http-parser in your php script, add:
Usage:
Parsing request
Parsing response
Documentation
Request
getStartLine()->getHttpMethod()
- returns HTTP request methodgetStartLine()->getTargetRequest()
- returns HTTP request target pathgetStartLine()->getHttpVersion()
- returns HTTP request protocol versiongetHeaders()
- returns HTTP request headers collectiongetHeaders()[n]->getName()
- returns HTTP request header namegetHeaders()[n]->getValues()
- returns HTTP request header valuesgetBody()
- returns HTTP request body content
Response
getStartLine()->getHttpVersion()
- returns HTTP response protocol versiongetStartLine()->getStatusCode()
- returns HTTP response status codegetStartLine()->getStatusText()
- returns HTTP response status textgetHeaders()
- returns HTTP request headers collectiongetHeaders()[n]->getName()
- returns HTTP request header namegetHeaders()[n]->getValues()
- returns HTTP request header valuesgetBody()
- returns HTTP request body content
About
Submitting bugs and feature requests
Bugs and feature request are tracked on GitHub
License
Monolog is licensed under the MIT License - see the LICENSE
file for details
All versions of http-parser with dependencies
PHP Build Version
Package Version
The package vircom/http-parser contains the following files
Loading the files please wait ....