poirot / http
This package is abandoned and no longer maintained.
The author suggests using the poirot/http package instead.
There is no license information available for the latest version (dev-master) of this package.
HTTP Request and Response .
dev-master
2017-05-10 10:33 UTC
Requires
- poirot/std: dev-master
Suggests
- poirot/ioc: IoC Containers
- poirot/psr7-http: Psr7 Implementation
- poirot/stream: Stream
This package is auto-updated.
Last update: 2020-07-05 18:55:28 UTC
README
Build Http Request From Builder
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)) );
Headers
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"']);