Interface AdapterInterface

Summary

Fully Qualified Name: Laminas\Http\Client\Adapter\AdapterInterface

Description

An interface description for Laminas\Http\Client\Adapter classes.

These classes are used as connectors for Laminas\Http\Client, performing the tasks of connecting, writing, reading and closing connection to the server.

Methods

Name Description Defined By
close() Close the connection to the server AdapterInterface
connect() Connect to the remote server AdapterInterface
read() Read response from server AdapterInterface
setOptions() Set the configuration array for the adapter AdapterInterface
write() Send request to the remote server AdapterInterface

Method Details

close()

Close the connection to the server

Returns:

connect()

Connect to the remote server

Parameter Name Type Description
$host string
$port int
$secure bool

Returns:

read()

Read response from server

Returns: string

setOptions()

Set the configuration array for the adapter

Parameter Name Type Description
$options array

Returns:

write()

Send request to the remote server

Parameter Name Type Description
$method string
$url \Laminas\Uri\Uri
$httpVer string
$headers array
$body string

Returns: string Request as text

Top