Download .zip |
Info | Documentation | View files (40) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2019-07-13 (21 hours ago) | Not enough user ratings | Total: 150 | All time: 8,698 This week: 301 |
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 |
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 | / | 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 | / | HttpMessage |
File | Role | Description | ||
---|---|---|---|---|
Interfaces (1 file) | ||||
Request (2 files, 1 directory) | ||||
Response (2 files, 2 directories) |
Files | / | HttpMessage | / | Request |
File | Role | Description | ||
---|---|---|---|---|
Plugin (4 files) | ||||
BuildHttpRequest.php | Class | Class source | ||
StreamBodyMultiPart.php | Class | Class source |
Files | / | 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 | / | HttpMessage | / | Response |
File | Role | Description | ||
---|---|---|---|---|
Header (1 file) | ||||
Plugin (3 files) | ||||
BuildHttpResponse.php | Class | Class source | ||
DataParseResponsePhp.php | Class | Class source |
Files | / | HttpMessage | / | Response | / | Plugin |
File | Role | Description |
---|---|---|
aPluginResponse.php | Class | Class source |
PhpServer.php | Class | Class source |
Status.php | Class | Class source |
Files | / | 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 | / | 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 | / | Psr |
File | Role | Description |
---|---|---|
aMessageBridgeInPsr.php | Class | Class source |
RequestBridgeInPsr.php | Class | Class source |
ResponseBridgeInPsr.php | Class | Class source |
ServerRequestBridgeInPsr.php | Class | Class source |
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.