open() open() Open the transport for reading/writing Throws \Thrift\Exception\TTransportException if cannot open
read() read(integer $len) : string Read some data into the array. Parameters integer $len How much to read Throws \Thrift\Exception\TTransportException if cannot read any more data Returns string — The data that has been read
readAll() readAll( $len) : string Guarantees that the full amount of data is read. Parameters $len Throws \Thrift\Transport\TTransportException if cannot read data Returns string — The data, of exact length
write() write(string $buf) Writes some data into the pending buffer Parameters string $buf The data to write Throws \Thrift\Exception\TTransportException if writing fails
flush() flush() Opens and sends the actual request over the HTTP connection Throws \Thrift\Exception\TTransportException if a writing error occurs
__construct() __construct(string $host, integer $port = 80, string $uri = '', $scheme = 'http') Make a new HTTP client. Parameters string $host integer $port string $uri $scheme