Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 171 | All time: 8,830 This week: 455 |
Version | License | PHP version | Categories | |||
http-abstraction 1.0.17 | MIT/X Consortium ... | 5 | HTTP, PHP 5, PSR |
Description | Author | |
This package can parse HTTP requests and parse responses with PSR-7. |
Builder Support String or Array Settings.
$reqStr =<<< DOC
GET /api/v1.1/page/search HTTP/1.1
Host: site.com
Cache-Control: no-cache
DOC;
$request = new \Poirot\Http\HttpRequest(
new BuildHttpRequest(BuildHttpRequest::parseWith($reqStr))
);
HeaderFactory::of('WWW-Authenticate: Basic realm="admin_panel"');
HeaderFactory::of(['WWW-Authenticate', 'Basic realm="admin_panel"']);
// options of specific header as plugin
HeaderFactory::of('WWW-Authenticate' => ['header_line' => 'Basic realm="admin_panel"']);
Files (40) |
File | Role | Description | ||
---|---|---|---|---|
Header (5 files) | ||||
HttpMessage (3 directories) | ||||
Interfaces (5 files, 1 directory) | ||||
Psr (4 files) | ||||
aHttpMessage.php | Class | Class source | ||
composer.json | Data | Auxiliary data | ||
HttpRequest.php | Class | Class source | ||
HttpResponse.php | Class | Class source | ||
HttpStatus.php | Class | Class source | ||
LICENSE | Lic. | License text | ||
MimeResolver.php | Class | Class source | ||
README.md | Doc. | Documentation | ||
_functions.php | Class | Class source |
Files (40) | / | Header |
File | Role | Description |
---|---|---|
aHeaderHttp.php | Class | Class source |
CollectionHeader.php | Class | Class source |
FactoryHttpHeader.php | Class | Class source |
HeaderLine.php | Class | Class source |
PluginsHttpHeader.php | Class | Class source |
Files (40) | / | HttpMessage |
File | Role | Description | ||
---|---|---|---|---|
Interfaces (1 file) | ||||
Request (2 files, 1 directory) | ||||
Response (2 files, 2 directories) |
Files (40) | / | HttpMessage | / | Request |
File | Role | Description | ||
---|---|---|---|---|
Plugin (4 files) | ||||
BuildHttpRequest.php | Class | Class source | ||
StreamBodyMultiPart.php | Class | Class source |
Files (40) | / | HttpMessage | / | Request | / | Plugin |
File | Role | Description |
---|---|---|
aPluginRequest.php | Class | Class source |
MethodType.php | Class | Class source |
ParseRequestData.php | Class | Class source |
PhpServer.php | Class | Class source |
Files (40) | / | HttpMessage | / | Response |
File | Role | Description | ||
---|---|---|---|---|
Header (1 file) | ||||
Plugin (3 files) | ||||
BuildHttpResponse.php | Class | Class source | ||
DataParseResponsePhp.php | Class | Class source |
Files (40) | / | HttpMessage | / | Response | / | Plugin |
File | Role | Description |
---|---|---|
aPluginResponse.php | Class | Class source |
PhpServer.php | Class | Class source |
Status.php | Class | Class source |
Files (40) | / | Interfaces |
File | Role | Description | ||
---|---|---|---|---|
Respec (4 files) | ||||
iHeader.php | Class | Class source | ||
iHeaders.php | Class | Class source | ||
iHttpMessage.php | Class | Class source | ||
iHttpRequest.php | Class | Class source | ||
iHttpResponse.php | Class | Class source |
Files (40) | / | Interfaces | / | Respec |
File | Role | Description |
---|---|---|
iRequestAware.php | Class | Class source |
iRequestProvider.php | Class | Class source |
iResponseAware.php | Class | Class source |
iResponseProvider.php | Class | Class source |
Files (40) | / | Psr |
File | Role | Description |
---|---|---|
aMessageBridgeInPsr.php | Class | Class source |
RequestBridgeInPsr.php | Class | Class source |
ResponseBridgeInPsr.php | Class | Class source |
ServerRequestBridgeInPsr.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.