for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace kalanis\RemoteRequest\Protocols;
use kalanis\RemoteRequest;
/**
* Class Http
* @package kalanis\RemoteRequest\Protocols
* Properties for query to remote server - method HTTP
*/
class Http extends AProtocol
{
public const DELIMITER = "\r\n";
protected function loadParams(): RemoteRequest\Connection\Params\AParams
return new RemoteRequest\Connection\Params\Tcp();
}
protected function loadQuery(): RemoteRequest\Protocols\Dummy\Query
return new Http\Query();
protected function loadAnswer(): RemoteRequest\Protocols\Dummy\Answer
$lib = new Http\Answer($this->rrLang);
$lib->addStringDecoding(new Http\Answer\DecodeStrings\Chunked());
$lib->addStringDecoding(new Http\Answer\DecodeStrings\Zipped());
$lib->addStringDecoding(new Http\Answer\DecodeStrings\Compressed());
$lib->addStringDecoding(new Http\Answer\DecodeStrings\Deflated());
return $lib;