Opens a socket to the route.
SimpleSocket
&createConnection
(
string $method,
integer $timeout)
-
string
$method: HTTP request method, usually GET.
-
integer
$timeout: Connection timeout.
Redefined in descendants as:
Factory for socket.
SimpleSocket/SimpleSecureSocket
&_createSocket
(string $scheme, string $host, integer $port, integer $timeout)
-
string
$scheme: Protocol to use.
-
string
$host: Hostname to connect to.
-
integer
$port: Remote port.
-
integer
$timeout: Connection timeout.
Creates the host part of the request.
string
_getHostLine
()
Redefined in descendants as:
Creates the first line which is the actual request.
string
_getRequestLine
(string $method)
-
string
$method: HTTP request method, usually GET.
Redefined in descendants as: